Merge branch 'master' into 'master'

Add handlebar helper to convert JSON to string

See merge request entgra/carbon-device-mgt!60
merge-requests/64/head
Saad Sahibjan 6 years ago
commit 35071ed27b

@ -223,6 +223,7 @@ policyModule = function () {
appObjectToView = {};
appObjectToView["appName"] = appObjectFromRestEndpoint["name"];
appObjectToView["appId"] = appObjectFromRestEndpoint["id"];
appObjectToView["webUrl"] = appObjectFromRestEndpoint["appmeta"]["weburl"];
if ("webapp" === appObjectFromRestEndpoint["platform"]) {
appObjectToView["packageName"] = appObjectFromRestEndpoint["appmeta"]["weburl"];
appObjectToView["type"] = "Web Clip"

@ -504,6 +504,12 @@ function formatRepoSelection(user) {
$(document).ready(function () {
// Handlebar helper to convert JSON to String
Handlebars.registerHelper("json", function (jsonObject) {
return JSON.stringify(jsonObject);
});
$("#users-input").select2({
multiple: true,
tags: false,

@ -599,6 +599,12 @@ var formatRepoSelection = function (user) {
$(document).ready(function () {
// Handlebar helper to convert JSON to String
Handlebars.registerHelper("json", function (jsonObject) {
return JSON.stringify(jsonObject);
});
// Adding initial state of wizard-steps.
$("#users-input").select2({
multiple: true,
@ -755,5 +761,4 @@ $(document).ready(function () {
$("." + nextStep).removeClass("hidden");
}
});
});
Loading…
Cancel
Save