Icu 6036 update filter dropdown for tags in list view (#1337)
✅ Closes: ICU-6036
This commit is contained in:
1 parent
5224512da0
commit
eb539b9c5b
3 files changed
+69
-21
No files matched your search
@@ -36,6 +36,20 @@ export default class WorkerModel extends GeneratedWorkerModel {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the config tags as an array of key/value pair objects.
|
||||
* @type {[object]}
|
||||
*/
|
||||
getConfigTagList() {
|
||||
if (!this.config_tags) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return Object.entries(this.config_tags).flatMap(([key, value]) =>
|
||||
value.map((tag) => ({ key, value: tag }))
|
||||
);
|
||||
}
|
||||
|
||||
@attr({
|
||||
description:
|
||||
'The deduplicated union of the tags reported by the worker ' +
|
||||
|
||||
Reference in new issue
Block a user