Add Buefy support for "delete w/ simple confirm" from index grid
This commit is contained in:
parent
3775c53df3
commit
f727c87b56
6 changed files with 71 additions and 9 deletions
|
@ -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: {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue