correctly reset local data after creating blocker
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ export const blockTypes = [
|
||||
|
||||
export const blockArea = [
|
||||
'full',
|
||||
'payment',
|
||||
'payments',
|
||||
];
|
||||
|
||||
export const schema = new mongoose.Schema({
|
||||
|
||||
Reference in New Issue
Block a user