the disabled key for the manual-inv-group-notifications

was getting added to the notifications object for all notifications-related-lists
This commit is contained in:
Jared Tabor 2016-06-16 13:52:31 -07:00
parent 98e5291bfc
commit 95e500d472
2 changed files with 6 additions and 2 deletions

View File

@ -350,7 +350,7 @@ export default
for (itm in GroupFormObject.related) {
if (GroupFormObject.related[itm].include === "NotificationsList") {
GroupFormObject.related[itm] = NotificationsList;
GroupFormObject.related[itm] = angular.copy(NotificationsList);
GroupFormObject.related[itm].generateList = true;
GroupFormObject.related[itm].disabled = "source === undefined || source.value === ''";
}

View File

@ -1519,7 +1519,11 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
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>`;
`ng-class="{'is-selected': ${itm}Selected ` ;
if(this.form.related[itm].disabled){
html += `, 'Form-tab--disabled' : ${this.form.related[itm].disabled }`;
}
html += `}">${(collection.title || collection.editTitle)}</div>`;
}
}
else if(this.mode === "add"){