mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
Merge pull request #1897 from jaredevantabor/inv-source-notifications
Disabling notifications for manual inv sources
This commit is contained in:
commit
8c03471921
@ -140,6 +140,7 @@
|
||||
.Form-tab--disabled:hover {
|
||||
color: @btn-txt;
|
||||
background-color: @btn-bg;
|
||||
cursor:not-allowed!important;
|
||||
}
|
||||
|
||||
.Form-tabSection{
|
||||
|
@ -327,6 +327,7 @@ export default
|
||||
if (GroupFormObject.related[itm].include === "NotificationsList") {
|
||||
GroupFormObject.related[itm] = NotificationsList;
|
||||
GroupFormObject.related[itm].generateList = true;
|
||||
GroupFormObject.related[itm].disabled = "source === undefined";
|
||||
}
|
||||
}
|
||||
return GroupFormObject;
|
||||
|
@ -1499,11 +1499,10 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
|
||||
for (itm in this.form.related) {
|
||||
collection = this.form.related[itm];
|
||||
html += "<div id=\"" + itm + "_tab\" "+
|
||||
"class=\"Form-tab\" "+
|
||||
"ng-click=\"toggleFormTabs($event)\"" +
|
||||
"ng-class=\"{'is-selected': " + itm + "Selected }\">" + (collection.title || collection.editTitle) +
|
||||
"</div>\n";
|
||||
html += `<div id="${itm}_tab"`+
|
||||
`class="Form-tab"`+
|
||||
`ng-click="${this.form.related[itm].disabled} || toggleFormTabs($event)"` +
|
||||
`ng-class="{'is-selected': ${itm}Selected, 'Form-tab--disabled' : ${this.form.related[itm].disabled }}">${(collection.title || collection.editTitle)} </div>`;
|
||||
}
|
||||
}
|
||||
else if(this.mode === "add"){
|
||||
@ -1517,7 +1516,6 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
||||
"</div>\n";
|
||||
}
|
||||
}
|
||||
|
||||
html += "</div>";//tabHolder
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user