mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
Revert "refactor(editor): Turn showMessage mixin to composable" (#6243)
Revert "refactor(editor): Turn showMessage mixin to composable (#6081)"
This reverts commit b95fcd7323.
This commit is contained in:
@@ -118,9 +118,10 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
//@ts-ignore
|
||||
import VueJsonPretty from 'vue-json-pretty';
|
||||
import { copyPaste } from '@/mixins/copyPaste';
|
||||
import { useToast } from '@/composables';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { MAX_DISPLAY_DATA_SIZE } from '@/constants';
|
||||
|
||||
@@ -130,17 +131,12 @@ import { mapStores } from 'pinia';
|
||||
import { useNDVStore } from '@/stores/ndv.store';
|
||||
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
||||
|
||||
export default mixins(copyPaste).extend({
|
||||
export default mixins(copyPaste, showMessage).extend({
|
||||
name: 'NodeErrorView',
|
||||
props: ['error'],
|
||||
components: {
|
||||
VueJsonPretty,
|
||||
},
|
||||
setup() {
|
||||
return {
|
||||
...useToast(),
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapStores(useNodeTypesStore, useNDVStore),
|
||||
displayCause(): boolean {
|
||||
@@ -255,7 +251,7 @@ export default mixins(copyPaste).extend({
|
||||
this.copySuccess();
|
||||
},
|
||||
copySuccess() {
|
||||
this.showMessage({
|
||||
this.$showMessage({
|
||||
title: this.$locale.baseText('nodeErrorView.showMessage.title'),
|
||||
type: 'info',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user