Abbreviating counts in filters.

This commit is contained in:
2024-03-28 01:28:41 +01:00
parent f13b6e1a03
commit 82cd0ac057
5 changed files with 16 additions and 7 deletions

View File

@@ -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;