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);
}

View File

@ -1,5 +1,2 @@
type IToastSuccess = (message: string) => void;
type IToastError = (
error: Error | string,
displayReport?: boolean
) => void;
type IToastError = (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 commandObject = ref<{
[key in keyof SettingsCommand]: string[] | string;
[key: string]: string[] | string;
}>({});
const shellValue = ref<string>("");

View File

@ -138,7 +138,11 @@ const updatePassword = async (event: Event) => {
}
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"]);
authStore.updateUser(data);
$showSuccess(t("settings.passwordUpdated"));