Merge branch 'hotfix/modal-title-bug' into develop
This commit is contained in:
commit
c4affd29da
|
|
@ -34,15 +34,20 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Modal from '@/components/Modal';
|
import Modal from '@/components/Modal';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Modal
|
Modal,
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
title() {
|
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: {
|
methods: {
|
||||||
|
|
@ -52,7 +57,7 @@
|
||||||
cancel() {
|
cancel() {
|
||||||
this.$modal.cancel();
|
this.$modal.cancel();
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue