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:
Lance Edgar 2020-01-06 07:46:10 -06:00
parent 03c8d3409a
commit 4c5b01f287
2 changed files with 37 additions and 16 deletions

View file

@ -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) {