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:
Csaba Tuncsik
2023-05-12 16:43:34 +02:00
committed by GitHub
parent 13bcec1661
commit 638e3f209d
75 changed files with 863 additions and 991 deletions

View File

@@ -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',
});