mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-08-07 03:06:13 +00:00
TLSDomains: rename domain to destination
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>
This commit is contained in:
parent
a144e5343d
commit
06c37f16e8
@ -1,14 +1,14 @@
|
|||||||
/*global Proxmox*/
|
/*global Proxmox*/
|
||||||
Ext.define('pmg-tls-policy', {
|
Ext.define('pmg-tls-policy', {
|
||||||
extend: 'Ext.data.Model',
|
extend: 'Ext.data.Model',
|
||||||
fields: [ 'domain', 'policy' ],
|
fields: [ 'destination', 'policy' ],
|
||||||
idProperty: 'domain',
|
idProperty: 'destination',
|
||||||
proxy: {
|
proxy: {
|
||||||
type: 'proxmox',
|
type: 'proxmox',
|
||||||
url: '/api2/json/config/tlspolicy'
|
url: '/api2/json/config/tlspolicy'
|
||||||
},
|
},
|
||||||
sorters: {
|
sorters: {
|
||||||
property: 'domain',
|
property: 'destination',
|
||||||
order: 'DESC'
|
order: 'DESC'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -22,16 +22,16 @@ Ext.define('PMG.TLSDomainEdit', {
|
|||||||
initComponent : function() {
|
initComponent : function() {
|
||||||
var me = this;
|
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 method = isCreate ? 'POST' : 'PUT';
|
||||||
var text = isCreate ? 'Create' : 'Edit';
|
var text = isCreate ? 'Create' : 'Edit';
|
||||||
|
|
||||||
var items = [
|
var items = [
|
||||||
{
|
{
|
||||||
xtype: isCreate ? 'proxmoxtextfield' : 'displayfield',
|
xtype: isCreate ? 'proxmoxtextfield' : 'displayfield',
|
||||||
name: 'domain',
|
name: 'destination',
|
||||||
fieldLabel: gettext('Domain')
|
fieldLabel: gettext('Domain')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -77,7 +77,7 @@ Ext.define('PMG.MailProxyTLSDomains', {
|
|||||||
header: gettext('Domain'),
|
header: gettext('Domain'),
|
||||||
width: 200,
|
width: 200,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
dataIndex: 'domain'
|
dataIndex: 'destination'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: gettext('Policy'),
|
header: gettext('Policy'),
|
||||||
@ -110,7 +110,7 @@ Ext.define('PMG.MailProxyTLSDomains', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var win = Ext.createWidget('pmgTLSDomainEdit', {
|
var win = Ext.createWidget('pmgTLSDomainEdit', {
|
||||||
domain: rec.data.domain
|
destination: rec.data.destination
|
||||||
});
|
});
|
||||||
|
|
||||||
win.load();
|
win.load();
|
||||||
|
Loading…
Reference in New Issue
Block a user