Move "delete results" logic for master grid
should be easier to customize this way..? previous way seemed to be broken
This commit is contained in:
parent
03c8d3409a
commit
4c5b01f287
2 changed files with 37 additions and 16 deletions
|
@ -244,16 +244,6 @@ let TailboneGrid = {
|
|||
this.$emit('deleteActionClicked', event.target.href)
|
||||
},
|
||||
|
||||
deleteResults(event) {
|
||||
|
||||
// submit form if user confirms
|
||||
// TODO: how/where to get/show "plural model title" here?
|
||||
// if (confirm("You are about to delete " + this.total + " ${grid.model_title_plural}.\n\nAre you sure?")) {
|
||||
if (confirm("You are about to delete " + this.total.toLocaleString('en') + " objects.\n\nAre you sure?")) {
|
||||
event.target.form.submit()
|
||||
}
|
||||
},
|
||||
|
||||
checkedRowUUIDs() {
|
||||
let uuids = []
|
||||
for (let row of this.$data.checkedRows) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue