update callback

This commit is contained in:
Mutasem 2021-08-09 21:49:52 +02:00
parent c0e614f000
commit 2325289123

View file

@ -87,7 +87,7 @@ export default Vue.extend({
},
closeDialog(callback?: () => void) {
this.$store.commit('ui/closeTopModal');
if (callback) {
if (typeof callback === 'function') {
callback();
}
},
@ -146,4 +146,4 @@ export default Vue.extend({
.modal-content > .el-row {
margin-bottom: 15px;
}
</style>
</style>