mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
refactor(editor): Migrate ui.store to use composition API (no-changelog) (#9892)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<ElDrawer
|
||||
:direction="direction"
|
||||
:model-value="uiStore.isModalOpen(name)"
|
||||
:model-value="uiStore.modalsById[name].open"
|
||||
:size="width"
|
||||
:before-close="close"
|
||||
:modal="modal"
|
||||
@@ -74,7 +74,7 @@ export default defineComponent({
|
||||
},
|
||||
methods: {
|
||||
onWindowKeydown(event: KeyboardEvent) {
|
||||
if (!this.uiStore.isModalActive(this.name)) {
|
||||
if (!this.uiStore.isModalActiveById[this.name]) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
handleEnter() {
|
||||
if (this.uiStore.isModalActive(this.name)) {
|
||||
if (this.uiStore.isModalActiveById[this.name]) {
|
||||
this.$emit('enter');
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user