root 4 роки тому
батько
коміт
766f9fe115
1 змінених файлів з 4 додано та 1 видалено
  1. 4 1
      app/Services/Cloud/ClientAreaSidebarService.php

+ 4 - 1
app/Services/Cloud/ClientAreaSidebarService.php

@@ -154,6 +154,9 @@ class ClientAreaSidebarService
              * @var VmModel $vmModel
              * @var VmModel $vmModel
              */
              */
             foreach (VmModel::ofHostingId( $this->getHostingId())->notVmid(0)->notTemplate()->get() as $vmModel){
             foreach (VmModel::ofHostingId( $this->getHostingId())->notVmid(0)->notTemplate()->get() as $vmModel){
+            	if($sidebar->getName()=='Virtual Datacenter'){
+		    continue;
+	        }
                 $childOrder++;
                 $childOrder++;
                 $newItem = [
                 $newItem = [
                     'label'   => $vmModel->name,
                     'label'   => $vmModel->name,
@@ -167,4 +170,4 @@ class ClientAreaSidebarService
 
 
         }
         }
     }
     }
-}
+}