mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
refactor(editor): Replace this.$props (no-changelog) (#5928)
* refactor(editor): Replace this. (no-changelog) * Lintfix
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<el-drawer
|
||||
:direction="direction"
|
||||
:visible="uiStore.isModalOpen(this.$props.name)"
|
||||
:visible="uiStore.isModalOpen(this.name)"
|
||||
:size="width"
|
||||
:before-close="close"
|
||||
:modal="modal"
|
||||
@@ -54,8 +54,8 @@ export default Vue.extend({
|
||||
mounted() {
|
||||
window.addEventListener('keydown', this.onWindowKeydown);
|
||||
|
||||
if (this.$props.eventBus) {
|
||||
this.$props.eventBus.on('close', () => {
|
||||
if (this.eventBus) {
|
||||
this.eventBus.on('close', () => {
|
||||
this.close();
|
||||
});
|
||||
}
|
||||
@@ -73,7 +73,7 @@ export default Vue.extend({
|
||||
},
|
||||
methods: {
|
||||
onWindowKeydown(event: KeyboardEvent) {
|
||||
if (!this.uiStore.isModalActive(this.$props.name)) {
|
||||
if (!this.uiStore.isModalActive(this.name)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ export default Vue.extend({
|
||||
}
|
||||
},
|
||||
handleEnter() {
|
||||
if (this.uiStore.isModalActive(this.$props.name)) {
|
||||
if (this.uiStore.isModalActive(this.name)) {
|
||||
this.$emit('enter');
|
||||
}
|
||||
},
|
||||
@@ -94,7 +94,7 @@ export default Vue.extend({
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.uiStore.closeModal(this.$props.name);
|
||||
this.uiStore.closeModal(this.name);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user