File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
src/views/portfolio/projects Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 36
36
<b-button
37
37
size =" md"
38
38
variant =" outline-primary"
39
- @click =" removeBom "
39
+ @click =" $refs.confirmModal.show() "
40
40
v-permission =" PERMISSIONS.PORTFOLIO_MANAGEMENT"
41
41
style =" margin-left : 0px "
42
42
>
124
124
:uuid =" this.uuid"
125
125
v-on:refreshTable =" refreshTable"
126
126
/>
127
+ <b-modal
128
+ ref =" confirmModal"
129
+ title =" Confirm Removal"
130
+ >
131
+ <p >Are you sure you want to remove the BOM and all its components?</p >
132
+ <div slot =" modal-footer" >
133
+ <b-button variant =" outline-primary" @click =" $refs.confirmModal.hide()" >Cancel</b-button >
134
+ <b-button variant =" outline-danger" @click =" handleRemoveBom" >Remove</b-button >
135
+ </div >
136
+ </b-modal >
127
137
</div >
128
138
</template >
129
139
@@ -409,6 +419,10 @@ export default {
409
419
}
410
420
this .$refs .table .uncheckAll ();
411
421
},
422
+ handleRemoveBom () {
423
+ this .$refs .confirmModal .hide ();
424
+ this .removeBom ();
425
+ },
412
426
removeBom : async function () {
413
427
let getDependenciesUrl = ` ${ this .$api .BASE_URL } /${ this .$api .URL_COMPONENT } /project/${ this .uuid } ` ;
414
428
let deleteBomUrl = ` ${ this .$api .BASE_URL } /${ this .$api .URL_BOM } /project/${ this .uuid } ` ;
You can’t perform that action at this time.
0 commit comments