* [PATCH proxmox-backup] ui: encryption keys: always enable tape encryption restore button
@ 2026-04-24 11:52 Dominik Csapak
2026-04-25 19:37 ` applied: " Thomas Lamprecht
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Csapak @ 2026-04-24 11:52 UTC (permalink / raw)
To: pbs-devel
Restoring a tape key should not require an existing tape key to select,
since it will be a new key, not overwriting the existing one.
(In the tape backup -> encryption keys view it's also always enabled)
To do that, remove the disabled/enableFn properties, but then the
component must be a 'button' (a proxmoxButton needs a record for it
to be enabled).
To make it a bit clearer that it does not have anything to do with the
listed keys, rename it to 'Restore Tape Key' and move it over to the
right of the toolbar.
While touching this, rename 'restoreEncryptionKey' to
'restoreTapeEncryptionKey' to make it also clearer in the code what it
does.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
www/config/EncryptionKeysView.js | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/www/config/EncryptionKeysView.js b/www/config/EncryptionKeysView.js
index cdcd986a6..0f9367c72 100644
--- a/www/config/EncryptionKeysView.js
+++ b/www/config/EncryptionKeysView.js
@@ -112,7 +112,7 @@ Ext.define('PBS.config.EncryptionKeysView', {
}).show();
},
- restoreEncryptionKey: function () {
+ restoreTapeEncryptionKey: function () {
Ext.create('Proxmox.window.Edit', {
title: gettext('Restore Key'),
isCreate: true,
@@ -275,13 +275,11 @@ Ext.define('PBS.config.EncryptionKeysView', {
(item.data.type === 'sync' && !!item.data['archived-at']) ||
item.data.type === 'tape',
},
- '-',
+ '->',
{
- text: gettext('Restore Key'),
- xtype: 'proxmoxButton',
- handler: 'restoreEncryptionKey',
- disabled: true,
- enableFn: (item) => item.data.type === 'tape',
+ text: gettext('Restore Tape Key'),
+ xtype: 'button',
+ handler: 'restoreTapeEncryptionKey',
},
],
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread* applied: [PATCH proxmox-backup] ui: encryption keys: always enable tape encryption restore button
2026-04-24 11:52 [PATCH proxmox-backup] ui: encryption keys: always enable tape encryption restore button Dominik Csapak
@ 2026-04-25 19:37 ` Thomas Lamprecht
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Lamprecht @ 2026-04-25 19:37 UTC (permalink / raw)
To: pbs-devel, Dominik Csapak
On Fri, 24 Apr 2026 13:52:09 +0200, Dominik Csapak wrote:
> Restoring a tape key should not require an existing tape key to select,
> since it will be a new key, not overwriting the existing one.
> (In the tape backup -> encryption keys view it's also always enabled)
>
> To do that, remove the disabled/enableFn properties, but then the
> component must be a 'button' (a proxmoxButton needs a record for it
> to be enabled).
>
> [...]
Applied, thanks!
[1/1] ui: encryption keys: always enable tape encryption restore button
commit: ffe55e23ebd0a6132dc4e40cd6bc11b670e1f12f
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-25 19:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-24 11:52 [PATCH proxmox-backup] ui: encryption keys: always enable tape encryption restore button Dominik Csapak
2026-04-25 19:37 ` applied: " Thomas Lamprecht
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox