summaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-11-24 09:40:00 +0100
committerGitHub <noreply@github.com>2022-11-24 09:40:00 +0100
commitafae72b7d428c82d2b8a695ba5ea3feb51739170 (patch)
treeaa4ac56f5fbc6806144c815663a5f25eb875f178 /apps/settings
parentb414f5ed866c404ab2a4d235f9343ff33aba0363 (diff)
parent2b4f2251e5d6ab9d1a44c34b1bfd27173987c4e2 (diff)
downloadnextcloud-server-afae72b7d428c82d2b8a695ba5ea3feb51739170.tar.gz
nextcloud-server-afae72b7d428c82d2b8a695ba5ea3feb51739170.zip
Merge pull request #35370 from nextcloud/fix/renaming-token
Fix UX of renaming token
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/src/components/AuthToken.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/settings/src/components/AuthToken.vue b/apps/settings/src/components/AuthToken.vue
index 5a48f5d0d8c..38aafc9e8d6 100644
--- a/apps/settings/src/components/AuthToken.vue
+++ b/apps/settings/src/components/AuthToken.vue
@@ -31,7 +31,7 @@
v-model="newName"
type="text"
@keyup.enter="rename"
- @blur="cancelRename"
+ @change="rename"
@keyup.esc="cancelRename">
<span v-else>{{ iconName.name }}</span>
<span v-if="wiping" class="wiping-warning">({{ t('settings', 'Marked for remote wipe') }})</span>
@@ -173,6 +173,7 @@ export default {
showMore: this.token.canScope || this.token.canDelete,
renaming: false,
newName: '',
+ oldName: '',
actionOpen: false,
}
},
@@ -232,6 +233,7 @@ export default {
// Close action (popover menu)
this.actionOpen = false
+ this.oldName = this.token.name
this.newName = this.token.name
this.renaming = true
this.$nextTick(() => {
@@ -240,6 +242,7 @@ export default {
},
cancelRename() {
this.renaming = false
+ this.$emit('rename', this.token, this.oldName)
},
revoke() {
this.actionOpen = false