Fixed eslint errors
This commit is contained in:
parent
f120377b56
commit
9b4eccff5c
@ -74,4 +74,3 @@ export function getDownloadURL(share: IFile, inline = false) {
|
||||
|
||||
return createURL("api/public/dl/" + share.hash + share.path, params, false);
|
||||
}
|
||||
|
||||
@ -135,4 +135,4 @@ export const i18n = createI18n({
|
||||
legacy: true,
|
||||
});
|
||||
|
||||
export default i18n;
|
||||
export default i18n;
|
||||
|
||||
2
frontend/src/types/settings.d.ts
vendored
2
frontend/src/types/settings.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
interface ISettings {
|
||||
interface ISettings {
|
||||
signup: boolean;
|
||||
createUserDir: boolean;
|
||||
userHomeBasePath: string;
|
||||
|
||||
5
frontend/src/types/toast.d.ts
vendored
5
frontend/src/types/toast.d.ts
vendored
@ -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;
|
||||
|
||||
@ -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>("");
|
||||
|
||||
@ -396,4 +396,4 @@ onBeforeUnmount(() => {
|
||||
clearTimeout(debounceTimeout.value);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@ -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"));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user