Add UI for managing blockers
This commit is contained in:
@@ -14,8 +14,7 @@
|
||||
<td><input v-model="blocker.reason"></td>
|
||||
<td>
|
||||
<button class="btn btn-primary mr-2" @click="$emit('save', blocker)">
|
||||
<span v-if="isNew">Create</span>
|
||||
<span v-else>Save</span>
|
||||
<span>Save</span>
|
||||
</button>
|
||||
<button class="btn btn-danger" @click="$emit('cancel')">
|
||||
<span>Cancel</span>
|
||||
|
||||
@@ -144,12 +144,6 @@ export default {
|
||||
async createBlocker (blocker) {
|
||||
await this.$store.dispatch('blockers:createBlocker', { blocker });
|
||||
this.showCreateForm = false;
|
||||
this.newBlocker = {
|
||||
type: '',
|
||||
area: '',
|
||||
value: '',
|
||||
reason: '',
|
||||
};
|
||||
this.loadBlockers();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user