Abbreviating counts in filters.
This commit is contained in:
@@ -126,6 +126,7 @@
|
||||
import { ref, inject } from 'vue';
|
||||
|
||||
import { del, patch } from '#/src/api.js';
|
||||
import abbreviateNumber from '#/src/utils/abbreviate-number.js';
|
||||
|
||||
import Dialog from '#/components/dialog/dialog.vue';
|
||||
|
||||
@@ -150,10 +151,6 @@ const stashNameInput = ref(null);
|
||||
const showRenameDialog = ref(false);
|
||||
const done = ref(true);
|
||||
|
||||
function abbreviateNumber(number) {
|
||||
return number?.toLocaleString('en-US', { notation: 'compact' }) || 0;
|
||||
}
|
||||
|
||||
async function setPublic(isPublic) {
|
||||
if (done.value === false) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user