root 4 лет назад
Родитель
Сommit
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
              */
             foreach (VmModel::ofHostingId( $this->getHostingId())->notVmid(0)->notTemplate()->get() as $vmModel){
+            	if($sidebar->getName()=='Virtual Datacenter'){
+		    continue;
+	        }
                 $childOrder++;
                 $newItem = [
                     'label'   => $vmModel->name,
@@ -167,4 +170,4 @@ class ClientAreaSidebarService
 
         }
     }
-}
+}