chore: fix typos (#3490)

This commit is contained in:
Andreas Deininger
2024-09-23 11:55:07 +02:00
committed by GitHub
parent 406d4f7884
commit d729701bd4
9 changed files with 13 additions and 13 deletions

View File

@@ -170,12 +170,12 @@ export const useUploadStore = defineStore("upload", {
async processUploads() {
const uploadsCount = Object.keys(this.uploads).length;
const isBellowLimit = uploadsCount < UPLOADS_LIMIT;
const isBelowLimit = uploadsCount < UPLOADS_LIMIT;
const isQueueEmpty = this.queue.length == 0;
const isUploadsEmpty = uploadsCount == 0;
const isFinished = isQueueEmpty && isUploadsEmpty;
const canProcess = isBellowLimit && !isQueueEmpty;
const canProcess = isBelowLimit && !isQueueEmpty;
if (isFinished) {
const fileStore = useFileStore();

View File

@@ -282,11 +282,11 @@ const formattedChunkSize = computed({
// Define funcs
const capitalize = (name: string, where: string | RegExp = "_") => {
if (where === "caps") where = /(?=[A-Z])/;
let splitted = name.split(where);
let split = name.split(where);
name = "";
for (let i = 0; i < splitted.length; i++) {
name += splitted[i].charAt(0).toUpperCase() + splitted[i].slice(1) + " ";
for (let i = 0; i < split.length; i++) {
name += split[i].charAt(0).toUpperCase() + split[i].slice(1) + " ";
}
return name.slice(0, -1);