correctly reset local data after creating blocker

This commit is contained in:
Phillip Thelen
2025-05-29 12:32:14 +02:00
parent ef2b7eb928
commit 1c2ca0e478
2 changed files with 7 additions and 1 deletions
@@ -144,6 +144,12 @@ export default {
async createBlocker (blocker) {
await this.$store.dispatch('blockers:createBlocker', { blocker });
this.showCreateForm = false;
this.newBlocker = {
type: '',
area: '',
value: '',
reason: '',
};
this.loadBlockers();
},
+1 -1
View File
@@ -11,7 +11,7 @@ export const blockTypes = [
export const blockArea = [
'full',
'payment',
'payments',
];
export const schema = new mongoose.Schema({