Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENG-2224] "Edit Scopes" creates a new token #2029

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions app/settings/tokens/edit/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ export default class SettingsTokensEditController extends Controller {
@action
refresh() {
chth0n1x marked this conversation as resolved.
Show resolved Hide resolved
this.clearTokenValue();

// Send action to route
this.send('refreshRoute');
this.router.transitionTo('settings.tokens');
}

clearTokenValue() {
Expand Down
2 changes: 1 addition & 1 deletion app/settings/tokens/edit/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<Button
{{on 'click' (action this.refresh)}}
>
{{t 'settings.tokens.createSuccess.editScopes'}}
{{t 'settings.tokens.createSuccess.close'}}
</Button>
chth0n1x marked this conversation as resolved.
Show resolved Hide resolved
{{else}}
<h4>{{t 'settings.tokens.editToken'}}</h4>
Expand Down
2 changes: 1 addition & 1 deletion translations/en-us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2627,7 +2627,7 @@ settings:
message: 'Token <strong>{tokenName}</strong> created:'
instructions: 'This token will never expire. This token should never be shared with others. If it is accidentally revealed publicly, it should be deactivated immediately.'
warning: 'This is the only time your token will be displayed.'
editScopes: 'Edit scopes'
close: 'Close'
verifyEmail:
merge:
header: 'Merge account?'
Expand Down