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

@@ -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',