Use locale formatting for some numbers in the Buefy grid

This commit is contained in:
Lance Edgar 2019-06-15 19:50:25 -05:00
parent 48e28a1ba4
commit 3ddde1a1ca
2 changed files with 2 additions and 2 deletions

View file

@ -158,7 +158,7 @@ let TailboneGrid = {
// 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 + " objects.\n\nAre you sure?")) {
if (confirm("You are about to delete " + this.total.toLocaleString('en') + " objects.\n\nAre you sure?")) {
event.target.form.submit()
}
},