Merge branch 'hotfix/modal-title-bug' into develop

This commit is contained in:
Ramon Wenger 2022-07-07 17:04:39 +02:00
commit c4affd29da
2 changed files with 13 additions and 8 deletions

View File

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