From 221136ce1ceccd6063ecd13c28c26c652b9ebdab Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 28 Jan 2022 15:11:15 +0100 Subject: [PATCH] Better info regarding storing keys on server --- dev/View/Popup/OpenPgpImport.js | 7 +-- .../Views/User/PopupsOpenPgpGenerate.html | 3 +- .../Views/User/PopupsOpenPgpImport.html | 45 +++++++++---------- 3 files changed, 25 insertions(+), 30 deletions(-) diff --git a/dev/View/Popup/OpenPgpImport.js b/dev/View/Popup/OpenPgpImport.js index 55f886782..79a43ac54 100644 --- a/dev/View/Popup/OpenPgpImport.js +++ b/dev/View/Popup/OpenPgpImport.js @@ -1,6 +1,5 @@ import { PgpUserStore } from 'Stores/User/Pgp'; -import { decorateKoCommands } from 'Knoin/Knoin'; import { AbstractViewPopup } from 'Knoin/AbstractViews'; import { Capa } from 'Common/Enums'; @@ -25,13 +24,9 @@ export class OpenPgpImportPopupView extends AbstractViewPopup { this.keyError(false); this.keyErrorMessage(''); }); - - decorateKoCommands(this, { - addOpenPgpKeyCommand: 1 - }); } - addOpenPgpKeyCommand() { + submitForm() { let keyTrimmed = this.key().trim(); if (/\n/.test(keyTrimmed)) { diff --git a/snappymail/v/0.0.0/app/templates/Views/User/PopupsOpenPgpGenerate.html b/snappymail/v/0.0.0/app/templates/Views/User/PopupsOpenPgpGenerate.html index c9ab6760d..496a4df2b 100644 --- a/snappymail/v/0.0.0/app/templates/Views/User/PopupsOpenPgpGenerate.html +++ b/snappymail/v/0.0.0/app/templates/Views/User/PopupsOpenPgpGenerate.html @@ -40,10 +40,11 @@
+