UX: a save should always have a cancel action (#17385)

This commit is contained in:
Chapoi 2022-07-08 11:02:16 +03:00 committed by GitHub
parent b622302351
commit 9dab97de70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,9 @@
<div class="control-group">
<div class="controls">
<DButton @class="btn-primary" @action={{action "changeUsername"}} @type="submit" @disabled={{this.saveDisabled}} @translatedLabel={{this.saveButtonText}} />
<LinkTo @route="preferences" @model={{this.currentUser}} class="btn btn-flat -cancel">
{{i18n "cancel"}}
</LinkTo>
{{#if this.saved}}{{i18n "saved"}}{{/if}}
</div>
</div>