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:
Cameron PereraandLisbet Alvarez authored and cameronperera committed 2024-07-16 15:48:23 -05:00
1 parent fd5143286f
commit 87f84e0c24
5 files changed
+38 -6

No files matched your search

@@ -4,7 +4,10 @@
*/
import Controller, { inject as controller } from '@ember/controller';
import { TAG_TYPE_CONFIG } from 'api/models/worker';
export default class ScopesScopeWorkersWorkerTagsController extends Controller {
@controller('scopes/scope/workers/index') workers;
tagTypeConfig = TAG_TYPE_CONFIG;
}
@@ -50,7 +50,16 @@
<Hds::Text::Code @tag='pre'>{{B.data.value}}</Hds::Text::Code>
</B.Td>
<B.Td>
<Hds::Badge @text={{B.data.type}} />
{{#if (eq B.data.type this.tagTypeConfig)}}
<Hds::TooltipButton
@text={{t 'resources.worker.tooltip'}}
@offset={{array -50 8}}
>
<Hds::Badge @text={{B.data.type}} />
</Hds::TooltipButton>
{{else}}
<Hds::Badge @text={{B.data.type}} />
{{/if}}
</B.Td>
</B.Tr>
</:body>