feat: 🎸 refresh targets list view in desktop (#1087)
✅ Closes: ICU-4024
This commit is contained in:
1 parent
367545fd4d
commit
3bdae6dce8
2 files changed
+13
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import Route from '@ember/routing/route';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { action } from '@ember/object';
|
||||
import { loading } from 'ember-loading';
|
||||
import { resourceFilter } from 'core/decorators/resource-filter';
|
||||
import runEvery from 'ember-pollster/decorators/route/run-every';
|
||||
import config from '../../../../config/environment';
|
||||
@@ -140,4 +141,13 @@ export default class ScopesScopeProjectsTargetsRoute extends Route {
|
||||
clearAllFilters() {
|
||||
this.project = [];
|
||||
}
|
||||
|
||||
/**
|
||||
* refreshes target data.
|
||||
*/
|
||||
@action
|
||||
@loading
|
||||
async refreshTargets() {
|
||||
return this.refresh();
|
||||
}
|
||||
}
|
||||
@@ -83,6 +83,9 @@
|
||||
>{{t 'actions.clear-all-filters'}}
|
||||
</Rose::Button>
|
||||
{{/if}}
|
||||
<LoadingButton @onClick={{route-action 'refreshTargets'}}>
|
||||
{{t 'actions.refresh'}}
|
||||
</LoadingButton>
|
||||
</Rose::Form>
|
||||
</Rose::Toolbar>
|
||||
{{/if}}
|
||||
|
||||
Reference in new issue
Block a user