]> git.proxmox.com Git - pmg-gui.git/commitdiff
TLSDomains: rename domain to destination
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 18 Mar 2020 10:23:47 +0000 (11:23 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 24 Mar 2020 17:10:51 +0000 (18:10 +0100)
in order to stay consistent with the change in pmg-api

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Reviewed-By: Dominik Csapak <d.csapak@proxmox.com>
js/MailProxyTLSDomains.js

index 757057dfd9e5ef3a1ba4b14ff8ae4715ea7011d9..4fa082c9277d1d6b9923fe299d6b3f3fb1957d8c 100644 (file)
@@ -1,14 +1,14 @@
 /*global Proxmox*/
 Ext.define('pmg-tls-policy', {
     extend: 'Ext.data.Model',
-    fields: [ 'domain', 'policy' ],
-    idProperty: 'domain',
+    fields: [ 'destination', 'policy' ],
+    idProperty: 'destination',
     proxy: {
        type: 'proxmox',
        url: '/api2/json/config/tlspolicy'
     },
     sorters: {
-       property: 'domain',
+       property: 'destination',
        order: 'DESC'
     }
 });
@@ -22,16 +22,16 @@ Ext.define('PMG.TLSDomainEdit', {
     initComponent : function() {
        var me = this;
 
-       var isCreate = ! Ext.isDefined(me.domain);
+       var isCreate = ! Ext.isDefined(me.destination);
 
-       var url = '/api2/extjs/config/tlspolicy' + (isCreate ? '' : '/' + me.domain);
+       var url = '/api2/extjs/config/tlspolicy' + (isCreate ? '' : '/' + me.destination);
        var method = isCreate ? 'POST' : 'PUT';
        var text = isCreate ? 'Create' : 'Edit';
 
        var items = [
            {
                xtype: isCreate ? 'proxmoxtextfield' : 'displayfield',
-               name: 'domain',
+               name: 'destination',
                fieldLabel: gettext('Domain')
            },
            {
@@ -77,7 +77,7 @@ Ext.define('PMG.MailProxyTLSDomains', {
            header: gettext('Domain'),
            width: 200,
            sortable: true,
-           dataIndex: 'domain'
+           dataIndex: 'destination'
        },
        {
            header: gettext('Policy'),
@@ -110,7 +110,7 @@ Ext.define('PMG.MailProxyTLSDomains', {
            }
 
            var win = Ext.createWidget('pmgTLSDomainEdit', {
-               domain: rec.data.domain
+               destination: rec.data.destination
            });
 
            win.load();