fix to console error of conditional toggle showing

This commit is contained in:
John Mitchell
2017-09-05 16:56:00 -04:00
parent 86a6e5ee63
commit 1238c788e1
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@
},
LOG_AGGREGATOR_VERIFY_CERT: {
type: 'toggleSwitch',
ngShow: 'LOG_AGGREGATOR_PROTOCOL.value === "https"'
ngShow: "LOG_AGGREGATOR_PROTOCOL.value === 'https'"
}
},

View File

@@ -762,7 +762,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
html += label(labelOptions);
html += `<div class="ScheduleToggle" ng-class="{'is-on': ${field.toggleSource}, 'ScheduleToggle--disabled': ${field.ngDisabled}}" aw-tool-tip="" `
html += `<div class="ScheduleToggle" ng-class="{'is-on': ${field.toggleSource}, 'ScheduleToggle--disabled': ${field.ngDisabled}}" aw-tool-tip="" `;
html += (field.ngShow) ? "ng-show=\"" + field.ngShow + "\" " : "";
html += `data-placement="top">`;
html += `<button ng-show="${field.toggleSource}" class="ScheduleToggle-switch is-on" ng-click="toggleForm('${field.toggleSource}')"