mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-01-03 10:31:54 +01:00
parent
ccc36a2154
commit
95605ef746
@ -14,10 +14,10 @@
|
||||
}
|
||||
|
||||
scope.getMessages = function(settingDefinition){
|
||||
const messages = [
|
||||
settingDefinition.name + "_title",
|
||||
settingDefinition.name + "_description",
|
||||
];
|
||||
const messages = [];
|
||||
if (settingDefinition){
|
||||
messages.push(settingDefinition.name + "_title");
|
||||
messages.push(settingDefinition.name + "_description");
|
||||
if (settingDefinition.urlSpecific){
|
||||
messages.push(settingDefinition.name + "_urlSpecific");
|
||||
}
|
||||
@ -41,6 +41,15 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
if (settingDefinition.action){
|
||||
messages.push(settingDefinition.name + "_label");
|
||||
}
|
||||
if (settingDefinition.actions){
|
||||
settingDefinition.actions.forEach(function(action){
|
||||
messages.push(action.name + "_label");
|
||||
});
|
||||
}
|
||||
}
|
||||
return messages;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user