From 8bd72bffa4b7caeb1c1fa00f2a68013f06e7b668 Mon Sep 17 00:00:00 2001 From: Joep Date: Sun, 10 Sep 2023 17:29:48 +0200 Subject: [PATCH] Lint --- frontend/src/views/settings/Global.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/src/views/settings/Global.vue b/frontend/src/views/settings/Global.vue index c94a6492..abf346a7 100644 --- a/frontend/src/views/settings/Global.vue +++ b/frontend/src/views/settings/Global.vue @@ -248,7 +248,7 @@ const debounceTimeout = ref(null); const commandObject = ref<{ [key in keyof SettingsCommand]: string; }>({}); -const shellValue = ref("") +const shellValue = ref(""); const $showError = inject("$showError") as TToast; const $showSuccess = inject("$showSuccess") as TToast; @@ -307,16 +307,16 @@ const save = async () => { // @ts-ignore for (const name of Object.keys(settings.value.commands)) { // @ts-ignore - const newValue = commandObject.value[name] + const newValue = commandObject.value[name]; // @ts-ignore - if(name in commandObject.value && !Array.isArray(newValue)) { + if (name in commandObject.value && !Array.isArray(newValue)) { // @ts-ignore newSettings.commands[name] = newValue - .split("\n") - .filter((cmd: string) => cmd !== ""); + .split("\n") + .filter((cmd: string) => cmd !== ""); } else { // @ts-ignore - newSettings.commands[name] = newValue + newSettings.commands[name] = newValue; } } newSettings.shell = shellValue.value.split("\n"); @@ -381,7 +381,7 @@ onMounted(async () => { originalSettings.value = original; settings.value = newSettings; // @ts-ignore - shellValue.value = newSettings.shell.join("\n") + shellValue.value = newSettings.shell.join("\n"); } catch (e) { error.value = e; } finally {