mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-06 13:33:34 +00:00
copy ha/Fencing.js from manager to manager6
This commit is contained in:
parent
922f545058
commit
bc0c438d17
47
www/manager6/ha/Fencing.js
Normal file
47
www/manager6/ha/Fencing.js
Normal file
@ -0,0 +1,47 @@
|
||||
Ext.define('PVE.ha.FencingView', {
|
||||
extend: 'Ext.grid.GridPanel',
|
||||
alias: ['widget.pveFencingView'],
|
||||
|
||||
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'
|
||||
]
|
||||
});
|
||||
|
||||
});
|
Loading…
Reference in New Issue
Block a user