feat: 🎸 Update alert designs (#2496)
This commit is contained in:
1 parent
97258f7525
commit
b40c53fb45
11 files changed
+68
-62
No files matched your search
@@ -3,17 +3,10 @@
|
||||
SPDX-License-Identifier: BUSL-1.1
|
||||
}}
|
||||
|
||||
<Rose::Button
|
||||
...attributes
|
||||
@style='inline-link-action'
|
||||
@iconLeft={{if
|
||||
this.isLoading
|
||||
'flight-icons/svg/loading-16'
|
||||
'flight-icons/svg/reload-16'
|
||||
}}
|
||||
class={{if this.isLoading 'loading-button is-loading' 'loading-button'}}
|
||||
<Hds::Button
|
||||
@text={{t 'actions.refresh'}}
|
||||
@color='secondary'
|
||||
@icon={{if this.isLoading 'loading' 'reload'}}
|
||||
@disabled={{this.isLoading}}
|
||||
{{on 'click' this.toggleRefresh}}
|
||||
>
|
||||
{{yield}}
|
||||
</Rose::Button>
|
||||
/>
|
||||
@@ -3,12 +3,17 @@
|
||||
SPDX-License-Identifier: BUSL-1.1
|
||||
}}
|
||||
|
||||
{{#if this.lastRefreshed}}
|
||||
<Rose::Toolbar::Info>
|
||||
{{relative-datetime-live this.lastRefreshed}}
|
||||
</Rose::Toolbar::Info>
|
||||
{{/if}}
|
||||
|
||||
<LoadingButton @onClick={{this.onClick}}>
|
||||
{{t 'actions.refresh'}}
|
||||
</LoadingButton>
|
||||
<div class='toolbar-refresher'>
|
||||
{{#if (has-block)}}
|
||||
{{yield}}
|
||||
{{else}}
|
||||
{{#if this.lastRefreshed}}
|
||||
<Hds::Text::Body @tag='p' @color='faint'>
|
||||
{{relative-datetime-live this.lastRefreshed}}
|
||||
</Hds::Text::Body>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<LoadingButton @onClick={{this.onClick}}>
|
||||
{{t 'actions.refresh'}}
|
||||
</LoadingButton>
|
||||
</div>
|
||||
@@ -15,7 +15,7 @@ export default class ToolbarRefresherComponent extends Component {
|
||||
// =methods
|
||||
|
||||
/**
|
||||
* Executes the click handler argument and trackes the time it completed.
|
||||
* Executes the click handler argument and tracks the time it completed.
|
||||
*/
|
||||
@action
|
||||
async onClick() {
|
||||
|
||||
Reference in new issue
Block a user