Fixed eslint errors

This commit is contained in:
Joep 2023-09-11 23:48:51 +02:00
parent f120377b56
commit 9b4eccff5c
No known key found for this signature in database
GPG Key ID: 6F5588F1DC2A8209
6 changed files with 10 additions and 10 deletions

View File

@ -74,4 +74,3 @@ export function getDownloadURL(share: IFile, inline = false) {
return createURL("api/public/dl/" + share.hash + share.path, params, false); return createURL("api/public/dl/" + share.hash + share.path, params, false);
} }

View File

@ -135,4 +135,4 @@ export const i18n = createI18n({
legacy: true, legacy: true,
}); });
export default i18n; export default i18n;

View File

@ -1,4 +1,4 @@
interface ISettings { interface ISettings {
signup: boolean; signup: boolean;
createUserDir: boolean; createUserDir: boolean;
userHomeBasePath: string; userHomeBasePath: string;

View File

@ -1,5 +1,2 @@
type IToastSuccess = (message: string) => void; type IToastSuccess = (message: string) => void;
type IToastError = ( type IToastError = (error: Error | string, displayReport?: boolean) => void;
error: Error | string,
displayReport?: boolean
) => void;

View File

@ -247,7 +247,7 @@ const settings = ref<ISettings | null>(null);
const debounceTimeout = ref<number | null>(null); const debounceTimeout = ref<number | null>(null);
const commandObject = ref<{ const commandObject = ref<{
[key in keyof SettingsCommand]: string[] | string; [key: string]: string[] | string;
}>({}); }>({});
const shellValue = ref<string>(""); const shellValue = ref<string>("");
@ -396,4 +396,4 @@ onBeforeUnmount(() => {
clearTimeout(debounceTimeout.value); clearTimeout(debounceTimeout.value);
} }
}); });
</script> </script>

View File

@ -138,7 +138,11 @@ const updatePassword = async (event: Event) => {
} }
try { try {
const data = {...authStore.user, id: authStore.user.id, password: password.value }; const data = {
...authStore.user,
id: authStore.user.id,
password: password.value,
};
await api.update(data, ["password"]); await api.update(data, ["password"]);
authStore.updateUser(data); authStore.updateUser(data);
$showSuccess(t("settings.passwordUpdated")); $showSuccess(t("settings.passwordUpdated"));