From 1f33d871f20d05aa6498921a4e3b31193d6fe8d9 Mon Sep 17 00:00:00 2001
From: Ashley Robinson
Date: Fri, 13 Oct 2023 09:22:35 -0400
Subject: [PATCH] Restored action for refreshToken.
---
app/settings/tokens/edit/controller.ts | 6 ++----
app/settings/tokens/edit/template.hbs | 2 +-
2 files changed, 3 insertions(+), 5 deletions(-)
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'}}