mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 12:10:06 -03:30
fix to console error of conditional toggle showing
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
},
|
||||
LOG_AGGREGATOR_VERIFY_CERT: {
|
||||
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 += `<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}')"
|
||||
|
||||
Reference in New Issue
Block a user