this patch moves the onlineHelp ids into the javascript classes, instead of defining them where we use the classes Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
50 lines
826 B
JavaScript
50 lines
826 B
JavaScript
Ext.define('PVE.ha.FencingView', {
|
|
extend: 'Ext.grid.GridPanel',
|
|
alias: ['widget.pveFencingView'],
|
|
|
|
onlineHelp: 'ha_manager_fencing',
|
|
|
|
initComponent : function() {
|
|
var me = this;
|
|
|
|
var store = new Ext.data.Store({
|
|
model: 'pve-ha-fencing',
|
|
data: []
|
|
});
|
|
|
|
Ext.apply(me, {
|
|
store: store,
|
|
stateful: false,
|
|
viewConfig: {
|
|
trackOver: false,
|
|
deferEmptyText: false,
|
|
emptyText: 'Use watchdog based fencing.'
|
|
},
|
|
columns: [
|
|
{
|
|
header: 'Node',
|
|
width: 100,
|
|
sortable: true,
|
|
dataIndex: 'node'
|
|
},
|
|
{
|
|
header: gettext('Command'),
|
|
flex: 1,
|
|
dataIndex: 'command'
|
|
}
|
|
]
|
|
});
|
|
|
|
me.callParent();
|
|
}
|
|
}, function() {
|
|
|
|
Ext.define('pve-ha-fencing', {
|
|
extend: 'Ext.data.Model',
|
|
fields: [
|
|
'node', 'command', 'digest'
|
|
]
|
|
});
|
|
|
|
});
|