]> git.proxmox.com Git - pmg-gui.git/commitdiff
pbs: drop beta notice and encryption checkbox
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 17 Nov 2020 17:07:04 +0000 (18:07 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 17 Nov 2020 17:07:07 +0000 (18:07 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
js/PBSConfig.js

index 9a14d6d71bbe56394287182bc933125497a49c60..fa40be8a32fdc9dab15c83f63cef29f153f55801 100644 (file)
@@ -1,66 +1,3 @@
-Ext.define('Proxmox.form.PBSEncryptionCheckbox', {
-    extend: 'Ext.form.field.Checkbox',
-    xtype: 'pbsEncryptionCheckbox',
-
-    inputValue: true,
-
-    viewModel: {
-       data: {
-           value: null,
-           originalValue: null,
-       },
-       formulas: {
-           blabel: (get) => {
-               let v = get('value');
-               let original = get('originalValue');
-               if (!get('isCreate') && original) {
-                   if (!v) {
-                       return gettext('Warning: Existing encryption key will be deleted!');
-                   }
-                   return gettext('Active');
-               } else {
-                   return gettext('Auto-generate a client encryption key, saved privately in /etc/pmg');
-               }
-           },
-       },
-    },
-
-    bind: {
-       value: '{value}',
-       boxLabel: '{blabel}',
-    },
-    resetOriginalValue: function() {
-       let me = this;
-       let vm = me.getViewModel();
-       vm.set('originalValue', me.value);
-
-       me.callParent(arguments);
-    },
-
-    getSubmitData: function() {
-       let me = this;
-       let val = me.getSubmitValue();
-       if (!me.isCreate) {
-           if (val === null) {
-              return { 'delete': 'encryption-key' };
-           } else if (val && !!val !== !!me.originalValue) {
-              return { 'encryption-key': 'autogen' };
-           }
-       } else if (val) {
-          return { 'encryption-key': 'autogen' };
-       }
-       return null;
-    },
-
-    initComponent: function() {
-       let me = this;
-       me.callParent();
-
-       let vm = me.getViewModel();
-       vm.set('isCreate', me.isCreate);
-    },
-});
-
 Ext.define('PMG.PBSInputPanel', {
     extend: 'Ext.tab.Panel',
     xtype: 'pmgPBSInputPanel',
@@ -146,17 +83,6 @@ Ext.define('PMG.PBSInputPanel', {
                        regexText: gettext('Example') + ': AB:CD:EF:...',
                        allowBlank: true,
                    },
-                   {
-                       xtype: 'pbsEncryptionCheckbox',
-                       name: 'encryption-key',
-                       isCreate: me.isCreate,
-                       fieldLabel: gettext('Encryption Key'),
-                   },
-                   {
-                       xtype: 'displayfield',
-                       userCls: 'pmx-hint',
-                       value: `Proxmox Backup Server is currently in beta.`,
-                   },
                ],
            },
            {