Pārlūkot izejas kodu

Merge pull request #45984 from nextcloud/artonge/fix/click_while_renaming

Don't trigger action when renaming
pull/46017/head
Louis pirms 3 nedēļām
vecāks
revīzija
9c4b959690
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 9
- 0
apps/files/src/components/FileEntryMixin.ts Parādīt failu

@@ -144,6 +144,10 @@ export default defineComponent({
this.actionsMenuStore.opened = opened ? this.uniqueId.toString() : null
},
},

isRenaming() {
return this.renamingStore.renamingNode === this.source
},
},

watch: {
@@ -208,6 +212,11 @@ export default defineComponent({
},

execDefaultAction(event) {
// Ignore click if we are renaming
if (this.isRenaming) {
return
}

// Ignore right click.
if (event.button > 1) {
return

+ 2
- 2
dist/files-main.js
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1
- 1
dist/files-main.js.map
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt