Add Buefy support for "delete w/ simple confirm" from index grid

This commit is contained in:
Lance Edgar 2019-06-10 21:58:36 -05:00
parent 3775c53df3
commit f727c87b56
6 changed files with 71 additions and 9 deletions

View file

@ -147,6 +147,12 @@ let TailboneGrid = {
this.applyFilters(params)
},
deleteObject(event) {
// we let parent component/app deal with this, in whatever way makes sense...
// TODO: should we ever provide anything besides the URL for this?
this.$emit('deleteActionClicked', event.target.href)
},
deleteResults(event) {
// submit form if user confirms
@ -166,3 +172,9 @@ let TailboneGrid = {
}
}
}
let GridPage = {
template: '#grid-page-template',
methods: {}
}