From 389139c1749904477a22644248ba25f46485827e Mon Sep 17 00:00:00 2001 From: Carson Fleming Date: Tue, 31 Dec 2024 18:47:28 -0800 Subject: skeleton of the final vision --- keys.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'keys.js') diff --git a/keys.js b/keys.js index a596199..72ad6f9 100644 --- a/keys.js +++ b/keys.js @@ -13,7 +13,7 @@ window.rcmail && window.rcmail.addEventListener('init', function() { .focus(); } - rcmail.register_command('plugin.inbox_keys_generate', () => rcmail.inbox_keys_generate(), true); + rcmail.register_command('plugin.inbox_keys_generate', () => rcmail.inbox_keys_generate(), false); rcmail.register_command('plugin.inbox_keys_import', () => rcmail.inbox_keys_import(), true); rcmail.register_command('plugin.inbox_keys_delete', () => rcmail.inbox_keys_delete(), false); } @@ -24,7 +24,8 @@ rcube_webmail.prototype.inbox_keys_select = function(list) { }; rcube_webmail.prototype.inbox_keys_generate = function() { - this.goto_url('plugin.inbox_keys_generate'); + // TODO: generate the key client-side and post it to the import endpoint, + // TODO: then redirect the client to download the generated private key }; rcube_webmail.prototype.inbox_keys_import = function() { -- cgit v1.2.3