From bb879725430007b85d38a3d641280fc25471984b Mon Sep 17 00:00:00 2001 From: Ponkhy Date: Sun, 12 Sep 2021 21:58:52 +0200 Subject: [PATCH 1/2] Hide 2FA section if disabled auth --- src/pages/Settings.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/pages/Settings.vue b/src/pages/Settings.vue index 8d5545b2a..696bee430 100644 --- a/src/pages/Settings.vue +++ b/src/pages/Settings.vue @@ -120,11 +120,10 @@ -

- {{ $t("Two Factor Authentication") }} -

- -
+
+

+ {{ $t("Two Factor Authentication") }} +

From 76f1f34a0af1da3e248c549f4cede1340b71c2ee Mon Sep 17 00:00:00 2001 From: LouisLam Date: Mon, 13 Sep 2021 19:25:12 +0800 Subject: [PATCH 2/2] fix #397, incorrect encode function for export file --- src/pages/Settings.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Settings.vue b/src/pages/Settings.vue index 696bee430..03fd89f51 100644 --- a/src/pages/Settings.vue +++ b/src/pages/Settings.vue @@ -395,7 +395,7 @@ export default { } exportData = JSON.stringify(exportData, null, 4); let downloadItem = document.createElement("a"); - downloadItem.setAttribute("href", "data:application/json;charset=utf-8," + encodeURI(exportData)); + downloadItem.setAttribute("href", "data:application/json;charset=utf-8," + encodeURIComponent(exportData)); downloadItem.setAttribute("download", fileName); downloadItem.click(); },