width: 400,
- initComponent : function() {
-
+ initComponent: function() {
var me = this;
me.isCreate = (me.alias_name === undefined);
me.method = 'PUT';
}
- var items = [
+ var items = [
{
xtype: 'textfield',
name: me.isCreate ? 'name' : 'rename',
Ext.apply(me, {
subject: gettext('Alias'),
isAdd: true,
- items: [ ipanel ],
+ items: [ipanel],
});
me.callParent();
Ext.define('pve-fw-aliases', {
extend: 'Ext.data.Model',
- fields: [ 'name', 'cidr', 'comment', 'digest' ],
+ fields: ['name', 'cidr', 'comment', 'digest'],
idProperty: 'name',
});
title: gettext('Alias'),
- initComponent : function() {
-
+ initComponent: function() {
var me = this;
if (!me.base_url) {
handler: run_editor,
});
- me.addBtn = Ext.create('Ext.Button', {
+ me.addBtn = Ext.create('Ext.Button', {
text: gettext('Add'),
handler: function() {
var win = Ext.create('PVE.FirewallAliasEdit', {
Ext.apply(me, {
store: store,
- tbar: [ me.addBtn, me.removeBtn, me.editBtn ],
+ tbar: [me.addBtn, me.removeBtn, me.editBtn],
selModel: sm,
columns: [
{
flex: 1,
},
{
- header: gettext('IP/CIDR'),
+ header: gettext('IP/CIDR'),
dataIndex: 'cidr',
flex: 1,
},