Replace Rose::Button with Hds::Button (#2771)

* refactor btn

* refactor scope/workers/index.hbs

* refactor add-members, add-principals

* refactor btns, fix tests

* update json-secret-skeleton btn

* remove class from app.scss
This commit is contained in:
Lauren authored and GitHub committed 2025-04-22 16:25:12 -04:00
1 parent 5786b86521
commit 36db2d3f1d
11 files changed
+61 -70

No files matched your search

@@ -11,13 +11,13 @@
</Form::Field::JsonSecret::Skeleton>
{{else if this.isActionable}}
<Form::Field::JsonSecret::Skeleton>
<Rose::Button
@iconLeft='flight-icons/svg/pencil-tool-16'
@style='secret-editor-skeleton-button'
<Hds::Button
class='secret-editor-skeleton-button'
@icon='pencil-tool'
@color='secondary'
@text={{t 'form.secret-editor.edit'}}
{{on 'click' this.enableEditing}}
>
{{t 'form.secret-editor.edit'}}
</Rose::Button>
/>
</Form::Field::JsonSecret::Skeleton>
{{else}}
<Rose::CodeEditor as |c|>
@@ -29,14 +29,12 @@
<input.field title={{t 'form.grant.help'}} />
</item.cell>
<item.cell>
<Rose::Button
@onSubmit={{true}}
@disabled={{this.cannotSave}}
@style='secondary'
title={{t 'actions.add'}}
>
{{t 'actions.add'}}
</Rose::Button>
<Hds::Button
type='submit'
disabled={{this.cannotSave}}
@color='secondary'
@text={{t 'actions.add'}}
/>
</item.cell>
</form.input>
</list.item>
@@ -82,14 +80,14 @@
</form.input>
<item.cell>
{{#if (can 'setGrants role' @model)}}
<Rose::Button
@style='secondary'
@iconOnly='flight-icons/svg/trash-16'
title={{t 'actions.remove'}}
<Hds::Button
@color='secondary'
@icon='trash'
@isIconOnly={{true}}
@text={{t 'actions.remove'}}
type='button'
{{on 'click' (fn @removeGrant grant.value)}}
>
{{t 'actions.remove'}}
</Rose::Button>
/>
{{/if}}
</item.cell>
</list.item>