From 3521008928aa4a37799d512c325dd01b064ef2c0 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 6 Mar 2022 23:44:32 +0100 Subject: [PATCH] no need to modify local keys - they are redownloaded every time the popup is shown --- frontend/src/scripts/popups/simple-popups.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/frontend/src/scripts/popups/simple-popups.ts b/frontend/src/scripts/popups/simple-popups.ts index 91e8f69da..10729e76f 100644 --- a/frontend/src/scripts/popups/simple-popups.ts +++ b/frontend/src/scripts/popups/simple-popups.ts @@ -783,11 +783,6 @@ list["generateApeKey"] = new SimplePopup( } else { const data = response.data; list["viewApeKey"].show([data.apeKey]); - const snap = DB.getSnapshot(); - if (snap.apeKeys) { - snap.apeKeys[data.apeKeyId] = data.apeKeyDetails; - DB.setSnapshot(snap); - } } }, () => { @@ -846,11 +841,6 @@ list["deleteApeKey"] = new SimplePopup( } Notifications.add("Key deleted", 1); - const snap = DB.getSnapshot(); - if (snap.apeKeys) { - delete snap.apeKeys[_thisPopup.parameters[0]]; - DB.setSnapshot(snap); - } ApeKeysPopup.show(); }, (_thisPopup) => { @@ -885,11 +875,6 @@ list["editApeKey"] = new SimplePopup( } Notifications.add("Key updated", 1); - const snap = DB.getSnapshot(); - if (snap.apeKeys) { - snap.apeKeys[_thisPopup.parameters[0]].name = input; - DB.setSnapshot(snap); - } ApeKeysPopup.show(); }, (_thisPopup) => {