]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/ceph/FS.js
added basic ability to install ceph via gui
[pve-manager.git] / www / manager6 / ceph / FS.js
index a1c34d7358416f7b9d9f8b1a36acf079f78e69eb..5947baadc5dc3a530d19fd496934857831a1c6e1 100644 (file)
@@ -161,7 +161,17 @@ Ext.define('PVE.NodeCephFSPanel', {
                            order: 'DESC'
                        }
                    }));
-                   Proxmox.Utils.monStoreErrors(view, view.rstore);
+                   var regex = new RegExp("not (installed|initialized)", "i");
+                   PVE.Utils.handleStoreErrorOrMask(view, view.rstore, regex, function(me, error){
+                       me.rstore.stopUpdate();
+                       PVE.Utils.showCephInstallOrMask(me.ownerCt, error.statusText, view.nodename,
+                           function(win){
+                               me.mon(win, 'cephInstallWindowClosed', function(){
+                                   me.rstore.startUpdate();
+                               });
+                           }
+                       );
+                   });
                    view.rstore.on('load', this.onLoad, this);
                    view.on('destroy', view.rstore.stopUpdate);
                },
@@ -244,7 +254,17 @@ Ext.define('PVE.NodeCephFSPanel', {
                            order: 'DESC'
                        }
                    }));
-                   Proxmox.Utils.monStoreErrors(view, view.rstore);
+                   var regex = new RegExp("not (installed|initialized)", "i");
+                   PVE.Utils.handleStoreErrorOrMask(view, view.rstore, regex, function(me, error){
+                       me.rstore.stopUpdate();
+                       PVE.Utils.showCephInstallOrMask(me.ownerCt, error.statusText, view.nodename,
+                           function(win){
+                               me.mon(win, 'cephInstallWindowClosed', function(){
+                                   me.rstore.startUpdate();
+                               });
+                           }
+                       );
+                   });
                    view.rstore.on('load', this.onLoad, this);
                    view.on('destroy', view.rstore.stopUpdate);
                },