Fix Confirm modal bug
This commit is contained in:
parent
a25736ab45
commit
5bd50457c5
|
|
@ -84,11 +84,11 @@
|
|||
|
||||
import me from '@/mixins/me';
|
||||
|
||||
import { hidden } from '@/helpers/visibility';
|
||||
import { CONTENT_TYPE } from '@/consts/types';
|
||||
import {hidden} from '@/helpers/visibility';
|
||||
import {CONTENT_TYPE} from '@/consts/types';
|
||||
import PopoverLink from '@/components/ui/PopoverLink';
|
||||
import { removeAtIndex } from '@/graphql/immutable-operations';
|
||||
import { EDIT_CONTENT_BLOCK_PAGE } from '@/router/module.names';
|
||||
import {removeAtIndex} from '@/graphql/immutable-operations';
|
||||
import {EDIT_CONTENT_BLOCK_PAGE} from '@/router/module.names';
|
||||
import {instrumentCategory} from '@/helpers/instrumentType';
|
||||
|
||||
const ContentComponent = () => import(/* webpackChunkName: "content-components" */'@/components/content-blocks/ContentComponent');
|
||||
|
|
|
|||
|
|
@ -34,15 +34,20 @@
|
|||
|
||||
<script>
|
||||
import Modal from '@/components/Modal';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
Modal
|
||||
Modal,
|
||||
},
|
||||
|
||||
computed: {
|
||||
title() {
|
||||
return this.$modal.state.payload.title || "Bestätigung";
|
||||
}
|
||||
const {payload} = this.$modal.state;
|
||||
if (payload && payload.title) {
|
||||
return payload.title;
|
||||
}
|
||||
return 'Bestätigung';
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
@ -52,7 +57,7 @@
|
|||
cancel() {
|
||||
this.$modal.cancel();
|
||||
},
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue