1
0
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:
Jared Tabor 2016-05-12 09:06:23 -04:00
commit 8c03471921
3 changed files with 6 additions and 6 deletions

View File

@ -140,6 +140,7 @@
.Form-tab--disabled:hover {
color: @btn-txt;
background-color: @btn-bg;
cursor:not-allowed!important;
}
.Form-tabSection{

View File

@ -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;

View File

@ -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
}