ui: storage: RBD: factor out view- model/controler

will be reused for CephFS, look at this with git's ignore whitespace
change flag '-w' to see that the changes consist mostly of indent and
hunk movement changes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2018-11-15 13:20:09 +01:00 committed by Dominik Csapak
parent 35ce219cdc
commit b42d008b3a

View File

@ -1,17 +1,18 @@
/*jslint confusion: true*/
Ext.define('PVE.storage.RBDInputPanel', {
extend: 'PVE.panel.StorageBase',
Ext.define('PVE.storage.Ceph.Model', {
extend: 'Ext.app.ViewModel',
alias: 'viewmodel.cephstorage',
viewModel: {
parent: null,
data: {
pveceph: true,
pvecephPossible: true
}
},
});
Ext.define('PVE.storage.Ceph.Controller', {
extend: 'Ext.app.ViewController',
alias: 'controller.cephstorage',
controller: {
xclass: 'Ext.app.ViewController',
control: {
'#': {
afterrender: 'queryMonitors'
@ -70,6 +71,14 @@ Ext.define('PVE.storage.RBDInputPanel', {
}
});
}
});
Ext.define('PVE.storage.RBDInputPanel', {
extend: 'PVE.panel.StorageBase',
controller: 'cephstorage',
viewModel: {
type: 'cephstorage'
},
setValues: function(values) {