refactor: 💡 Updated Manage Dropdown in auth-methods accounts (#2432)
* refactor: 💡 Updated Manage Dropdown in auth-methods accounts Updated Manage Dropdown in auth-methods account form to HDS ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-14599 * refactor: 💡 Changed asssert statement in delete-test.js Changed statement to reflect proper syntax and testing capability ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-14599
This commit is contained in:
2 files changed
+17
-17
No files matched your search
+7
-12
@@ -4,17 +4,12 @@
|
||||
}}
|
||||
|
||||
{{#if (can 'delete account' @model)}}
|
||||
<Rose::Dropdown
|
||||
@text={{t 'actions.manage'}}
|
||||
@dropdownRight={{true}}
|
||||
as |dropdown|
|
||||
>
|
||||
<dropdown.button
|
||||
@style='danger'
|
||||
@disabled={{@model.canSave}}
|
||||
<Hds::Dropdown data-test-manage-account-auth-methods as |dd|>
|
||||
<dd.ToggleButton @text={{t 'actions.manage'}} @color='secondary' />
|
||||
<dd.Interactive
|
||||
@text={{t 'resources.account.actions.delete'}}
|
||||
@color='critical'
|
||||
{{on 'click' (fn @delete @model)}}
|
||||
>
|
||||
{{t 'resources.account.actions.delete'}}
|
||||
</dropdown.button>
|
||||
</Rose::Dropdown>
|
||||
/>
|
||||
</Hds::Dropdown>
|
||||
{{/if}}
|
||||
Reference in new issue
Block a user