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
|
// submit form if user confirms
|
||||||
// TODO: how/where to get/show "plural model title" here?
|
// 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 + " ${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()
|
event.target.form.submit()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -178,7 +178,7 @@
|
||||||
<template slot="footer">
|
<template slot="footer">
|
||||||
<b-field grouped position="is-right">
|
<b-field grouped position="is-right">
|
||||||
<span class="control">
|
<span class="control">
|
||||||
showing {{ firstItem }} - {{ lastItem }} of {{ total }} results;
|
showing {{ firstItem.toLocaleString('en') }} - {{ lastItem.toLocaleString('en') }} of {{ total.toLocaleString('en') }} results;
|
||||||
</span>
|
</span>
|
||||||
<b-select v-model="perPage"
|
<b-select v-model="perPage"
|
||||||
size="is-small"
|
size="is-small"
|
||||||
|
|
Loading…
Reference in a new issue