mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-30 05:53:45 +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*/
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user