mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
feat: Replace new Vue() with custom event bus (no-changelog) (#5780)
* refactor: replace new Vue() with custom event bus (no-changelog) * fix: export types from design system main * fix: update component types * fix: update form inputs event bus
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
import Vue from 'vue';
|
||||
import ExpandableInputEdit from '@/components/ExpandableInput/ExpandableInputEdit.vue';
|
||||
import ExpandableInputPreview from '@/components/ExpandableInput/ExpandableInputPreview.vue';
|
||||
import { createEventBus } from '@/event-bus';
|
||||
|
||||
export default Vue.extend({
|
||||
name: 'InlineTextEdit',
|
||||
@@ -34,7 +35,7 @@ export default Vue.extend({
|
||||
newValue: '',
|
||||
escPressed: false,
|
||||
disabled: false,
|
||||
inputBus: new Vue(),
|
||||
inputBus: createEventBus(),
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
@@ -72,7 +73,7 @@ export default Vue.extend({
|
||||
this.$data.disabled = false;
|
||||
|
||||
if (!updated) {
|
||||
this.$data.inputBus.$emit('focus');
|
||||
this.$data.inputBus.emit('focus');
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user