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()
}
},

View file

@ -178,7 +178,7 @@
<template slot="footer">
<b-field grouped position="is-right">
<span class="control">
showing {{ firstItem }} - {{ lastItem }} of {{ total }} results;
showing {{ firstItem.toLocaleString('en') }} - {{ lastItem.toLocaleString('en') }} of {{ total.toLocaleString('en') }} results;
</span>
<b-select v-model="perPage"
size="is-small"