refactor: 💡 update groups and workers "new" button to HDS (#2236)

This commit is contained in:
Cameron Perera authored and Zhihe Li committed 2024-04-12 14:55:34 -04:00
1 parent ded8bdadd1
commit 5e7c25a1fa
2 files changed
+8 -6

No files matched your search

@@ -22,9 +22,10 @@
<page.actions>
{{#if (can 'create model' this.scope collection='groups')}}
{{#if @model.groupsExist}}
<Rose::LinkButton @route='scopes.scope.groups.new' @style='primary'>{{t
'resources.group.titles.new'
}}</Rose::LinkButton>
<Hds::Button
@route='scopes.scope.groups.new'
@text={{t 'resources.group.titles.new'}}
/>
{{/if}}
{{/if}}
</page.actions>
@@ -19,9 +19,10 @@
<page.actions>
{{#if (can 'create worker led worker' this.scope collection='workers')}}
{{#if @model}}
<Rose::LinkButton @route='scopes.scope.workers.new' @style='primary'>{{t
'titles.new'
}}</Rose::LinkButton>
<Hds::Button
@route='scopes.scope.workers.new'
@text={{t 'titles.new'}}
/>
{{/if}}
{{/if}}
</page.actions>