Better info regarding storing keys on server

This commit is contained in:
the-djmaze 2022-01-28 15:11:15 +01:00
parent f8cbd5d129
commit 221136ce1c
3 changed files with 25 additions and 30 deletions

View file

@ -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)) {