Add blacklist for selection groups
This commit is contained in:
@@ -51,7 +51,8 @@
|
|||||||
loaded: false,
|
loaded: false,
|
||||||
message: '',
|
message: '',
|
||||||
messageClass: '',
|
messageClass: '',
|
||||||
crmData: []
|
crmData: [],
|
||||||
|
hiddenSelectionGroups: [ 10 ]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
@@ -83,6 +84,9 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
hasVisibleSelections (group) {
|
hasVisibleSelections (group) {
|
||||||
|
if (this.hiddenSelectionGroups.indexOf(group.id) !== -1) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
for (let selection of group.selections) {
|
for (let selection of group.selections) {
|
||||||
if (selection.changeable === true || selection.value === true) {
|
if (selection.changeable === true || selection.value === true) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user