Files
threshold-ui/addons/core/addon/components/loading-button/index.hbs
T
Lisbet AlvarezandZhihe Li 29bde998ed refactor: 💡 remove usage of ember/runloop & ember-pollster (#2705)
* refactor: 💡 remove usage of ember/runloop & ember-pollster

---------

Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
2025-03-06 12:20:48 -08:00

12 lines
282 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
}}
<Hds::Button
@text={{t 'actions.refresh'}}
@color='secondary'
@icon={{if this.toggleRefresh.isRunning 'loading' 'reload'}}
@disabled={{this.isLoading}}
{{on 'click' this.toggleRefresh.perform}}
/>