Merge pull request #35370 from nextcloud/fix/renaming-token

Fix UX of renaming token
pull/35398/head
Carl Schwan 2 years ago committed by GitHub
commit afae72b7d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save