Use locale formatting for some numbers in the Buefy grid
This commit is contained in:
parent
48e28a1ba4
commit
3ddde1a1ca
|
@ -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()
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue