mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-31 02:03:22 +00:00
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:
parent
35ce219cdc
commit
b42d008b3a
@ -1,17 +1,18 @@
|
|||||||
/*jslint confusion: true*/
|
/*jslint confusion: true*/
|
||||||
Ext.define('PVE.storage.RBDInputPanel', {
|
Ext.define('PVE.storage.Ceph.Model', {
|
||||||
extend: 'PVE.panel.StorageBase',
|
extend: 'Ext.app.ViewModel',
|
||||||
|
alias: 'viewmodel.cephstorage',
|
||||||
|
|
||||||
viewModel: {
|
|
||||||
parent: null,
|
|
||||||
data: {
|
data: {
|
||||||
pveceph: true,
|
pveceph: true,
|
||||||
pvecephPossible: true
|
pvecephPossible: true
|
||||||
}
|
}
|
||||||
},
|
});
|
||||||
|
|
||||||
|
Ext.define('PVE.storage.Ceph.Controller', {
|
||||||
|
extend: 'Ext.app.ViewController',
|
||||||
|
alias: 'controller.cephstorage',
|
||||||
|
|
||||||
controller: {
|
|
||||||
xclass: 'Ext.app.ViewController',
|
|
||||||
control: {
|
control: {
|
||||||
'#': {
|
'#': {
|
||||||
afterrender: 'queryMonitors'
|
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) {
|
setValues: function(values) {
|
||||||
|
Loading…
Reference in New Issue
Block a user