mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +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:
@@ -19,9 +19,9 @@
|
||||
<script lang="ts">
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { copyPaste } from '@/mixins/copyPaste';
|
||||
import { useToast } from '@/composables';
|
||||
import { showMessage } from '@/mixins/showMessage';
|
||||
|
||||
export default mixins(copyPaste).extend({
|
||||
export default mixins(copyPaste, showMessage).extend({
|
||||
props: {
|
||||
label: {
|
||||
type: String,
|
||||
@@ -56,17 +56,12 @@ export default mixins(copyPaste).extend({
|
||||
default: 'large',
|
||||
},
|
||||
},
|
||||
setup() {
|
||||
return {
|
||||
...useToast(),
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
copy(): void {
|
||||
this.$emit('copy');
|
||||
this.copyToClipboard(this.value);
|
||||
|
||||
this.showMessage({
|
||||
this.$showMessage({
|
||||
title: this.toastTitle,
|
||||
message: this.toastMessage,
|
||||
type: 'success',
|
||||
|
||||
Reference in New Issue
Block a user