feat: 🎸 add tooltip to config tags in table (#2375)
* feat: 🎸 add tooltip to config tags in table ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-14331 * Update addons/core/translations/resources/en-us.yaml Co-authored-by: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com> * test: 💍 fix translation in test ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-14331 --------- Co-authored-by: Lisbet Alvarez <107949262+lisbet-alvarez@users.noreply.github.com>
This commit is contained in:
1 parent
fd5143286f
commit
87f84e0c24
5 files changed
+38
-6
No files matched your search
@@ -6,6 +6,9 @@
|
||||
import GeneratedWorkerModel from '../generated/models/worker';
|
||||
import { attr } from '@ember-data/model';
|
||||
|
||||
export const TAG_TYPE_CONFIG = 'config';
|
||||
export const TAG_TYPE_API = 'api';
|
||||
|
||||
export default class WorkerModel extends GeneratedWorkerModel {
|
||||
// =attributes
|
||||
|
||||
@@ -50,7 +53,7 @@ export default class WorkerModel extends GeneratedWorkerModel {
|
||||
}
|
||||
|
||||
return Object.entries(this.config_tags).flatMap(([key, value]) =>
|
||||
value.map((tag) => ({ key, value: tag, type: 'config' })),
|
||||
value.map((tag) => ({ key, value: tag, type: TAG_TYPE_CONFIG })),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -64,7 +67,7 @@ export default class WorkerModel extends GeneratedWorkerModel {
|
||||
}
|
||||
|
||||
return Object.entries(this.api_tags).flatMap(([key, value]) =>
|
||||
value.map((tag) => ({ key, value: tag, type: 'api' })),
|
||||
value.map((tag) => ({ key, value: tag, type: TAG_TYPE_API })),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user