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);
|
return createURL("api/public/dl/" + share.hash + share.path, params, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
signup: boolean;
|
||||||
createUserDir: boolean;
|
createUserDir: boolean;
|
||||||
userHomeBasePath: string;
|
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 IToastSuccess = (message: string) => void;
|
||||||
type IToastError = (
|
type IToastError = (error: Error | string, displayReport?: boolean) => void;
|
||||||
error: Error | string,
|
|
||||||
displayReport?: boolean
|
|
||||||
) => void;
|
|
||||||
|
|||||||
@ -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>("");
|
||||||
|
|
||||||
|
|||||||
@ -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"));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user