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