diff --git a/app/settings/tokens/edit/controller.ts b/app/settings/tokens/edit/controller.ts index 422f73b762a..e4fe415d27c 100644 --- a/app/settings/tokens/edit/controller.ts +++ b/app/settings/tokens/edit/controller.ts @@ -7,8 +7,7 @@ import Toast from 'ember-toastr/services/toast'; import Token from 'ember-osf-web/models/token'; import Analytics from 'ember-osf-web/services/analytics'; -import { task } from 'ember-concurrency'; -import { waitFor } from '@ember/test-waiters'; +import { action } from '@ember/object'; export default class SettingsTokensEditController extends Controller { @service analytics!: Analytics; @@ -21,8 +20,7 @@ export default class SettingsTokensEditController extends Controller { @reads('model.taskInstance.value') token?: Token; - @task - @waitFor + @action async refreshToken() { this.clearTokenValue(); diff --git a/app/settings/tokens/edit/template.hbs b/app/settings/tokens/edit/template.hbs index aac0ce211dc..f2da97c11f1 100644 --- a/app/settings/tokens/edit/template.hbs +++ b/app/settings/tokens/edit/template.hbs @@ -32,7 +32,7 @@ {{t 'settings.tokens.createSuccess.instructions'}}