From d632054d5af47896138d92015653ee8c09c111a1 Mon Sep 17 00:00:00 2001 From: ShittyKopper Date: Sat, 3 Feb 2024 14:31:34 +0300 Subject: [PATCH] upd: Ability to reset proxy account --- .../frontend/src/pages/admin/proxy-account.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/admin/proxy-account.vue b/packages/frontend/src/pages/admin/proxy-account.vue index 860f4f4b2..3747c0c47 100644 --- a/packages/frontend/src/pages/admin/proxy-account.vue +++ b/packages/frontend/src/pages/admin/proxy-account.vue @@ -14,7 +14,10 @@ SPDX-License-Identifier: AGPL-3.0-only - {{ i18n.ts.selectAccount }} +
+ {{ i18n.ts.selectAccount }} + Reset +
@@ -52,6 +55,18 @@ function chooseProxyAccount() { }); } +async function resetProxyAccount() { + const { canceled } = await os.confirm({ type: 'warning', text: i18n.ts.areYouSure }); + + if (canceled) { + return; + } + + proxyAccount.value = null; + proxyAccountId.value = null; + save(); +} + function save() { os.apiWithDialog('admin/update-meta', { proxyAccountId: proxyAccountId.value,