ui: fix PBS edit typos

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-08-19 15:48:51 +02:00
parent d3d1e19912
commit 34b53ccc82

View File

@ -13,16 +13,13 @@ Ext.define('Proxmox.form.PBSEncryptionCheckbox', {
blabel: (get) => { blabel: (get) => {
let v = get('value'); let v = get('value');
let original = get('originalValue'); let original = get('originalValue');
if (get('isCreate')) { if (!get('isCreate') && original) {
return gettext('Auto-generate a client encryption key, safed privately on cluster.');
}
if (original) {
if (!v) { if (!v) {
return gettext('Warning: Existing encryption Key will be deleted!'); return gettext('Warning: Existing encryption key will be deleted!');
} }
return gettext('Active'); return gettext('Active');
} else { } else {
return gettext('Auto-generate a client encryption key, safed privately on cluster filesystem'); return gettext('Auto-generate a client encryption key, saved privately on cluster filesystem');
} }
}, },
}, },