refactor: run formatter
This commit is contained in:
@@ -142,7 +142,7 @@ export class ConfigService extends EventEmitter {
|
|||||||
const response: Config[] = [];
|
const response: Config[] = [];
|
||||||
|
|
||||||
for (const variable of data) {
|
for (const variable of data) {
|
||||||
response.push(await this.update(variable.key, variable.value));
|
response.push(await this.update(variable.key, variable.value));
|
||||||
}
|
}
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
|
|||||||
@@ -413,7 +413,7 @@ const Account = () => {
|
|||||||
onConfirm: async () => {
|
onConfirm: async () => {
|
||||||
await userService
|
await userService
|
||||||
.removeCurrentUser()
|
.removeCurrentUser()
|
||||||
.then(()=> window.location.reload())
|
.then(() => window.location.reload())
|
||||||
.catch(toast.axiosError);
|
.catch(toast.axiosError);
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -54,19 +54,22 @@ const Admin = () => {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
configService.isNewReleaseAvailable().then((isNewReleaseAvailable) => {
|
configService
|
||||||
if (isNewReleaseAvailable) {
|
.isNewReleaseAvailable()
|
||||||
setManagementOptions([
|
.then((isNewReleaseAvailable) => {
|
||||||
...managementOptions,
|
if (isNewReleaseAvailable) {
|
||||||
{
|
setManagementOptions([
|
||||||
title: "Update",
|
...managementOptions,
|
||||||
icon: TbRefresh,
|
{
|
||||||
route:
|
title: "Update",
|
||||||
"https://github.com/stonith404/pingvin-share/releases/latest",
|
icon: TbRefresh,
|
||||||
},
|
route:
|
||||||
]);
|
"https://github.com/stonith404/pingvin-share/releases/latest",
|
||||||
}
|
},
|
||||||
}).catch();
|
]);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user