feat(frontend): add factory reset button with confirmation dialog
Add resetAppConfig API function, AlertDialog-confirmed factory reset button in config page, and i18n keys for en/zh/pt-br locales.
This commit is contained in:
1 parent
f53222f6a4
commit
3f653161e3
7 files changed
+110
-11
No files matched your search
@@ -77,6 +77,12 @@ export async function patchAppConfig(
|
||||
})
|
||||
}
|
||||
|
||||
export async function resetAppConfig(): Promise<ConfigActionResponse> {
|
||||
return request<ConfigActionResponse>("/api/config/reset", {
|
||||
method: "POST",
|
||||
})
|
||||
}
|
||||
|
||||
// WeChat QR login flow API
|
||||
|
||||
export interface WeixinFlowResponse {
|
||||
|
||||
Reference in new issue
Block a user