1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-03 10:31:54 +01:00

Search did not include button labels

For #242
This commit is contained in:
kkapsner 2018-09-21 16:40:24 +02:00
parent ccc36a2154
commit 95605ef746

View File

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