mirror of
https://github.com/ansible/awx.git
synced 2026-05-22 00:07:40 -02:30
fix to console error of conditional toggle showing
This commit is contained in:
@@ -63,7 +63,7 @@
|
|||||||
},
|
},
|
||||||
LOG_AGGREGATOR_VERIFY_CERT: {
|
LOG_AGGREGATOR_VERIFY_CERT: {
|
||||||
type: 'toggleSwitch',
|
type: 'toggleSwitch',
|
||||||
ngShow: 'LOG_AGGREGATOR_PROTOCOL.value === "https"'
|
ngShow: "LOG_AGGREGATOR_PROTOCOL.value === 'https'"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -762,7 +762,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
|
|
||||||
html += label(labelOptions);
|
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 += (field.ngShow) ? "ng-show=\"" + field.ngShow + "\" " : "";
|
||||||
html += `data-placement="top">`;
|
html += `data-placement="top">`;
|
||||||
html += `<button ng-show="${field.toggleSource}" class="ScheduleToggle-switch is-on" ng-click="toggleForm('${field.toggleSource}')"
|
html += `<button ng-show="${field.toggleSource}" class="ScheduleToggle-switch is-on" ng-click="toggleForm('${field.toggleSource}')"
|
||||||
|
|||||||
Reference in New Issue
Block a user