idleman пре 2 година
родитељ
комит
a60fa6074d
2 измењених фајлова са 6 додато и 5 уклоњено
  1. 1 1
      plugin/dashboard/DashboardWidget.class.php
  2. 5 4
      plugin/dashboard/action.php

+ 1 - 1
plugin/dashboard/DashboardWidget.class.php

@@ -88,7 +88,7 @@ class DashboardWidget extends Entity{
 
 
 
-		//todo
+		//todo placer en hook
 		$clock = new DashboardWidget();
 		$clock->icon = 'far fa-user';
 		$clock->headerBackground = 'rgb(0, 123, 255)';

+ 5 - 4
plugin/dashboard/action.php

@@ -114,18 +114,19 @@
 
 		switch($_['menu']){
 			case 'type':
-
-			$response['rows'] = DashoardWidget::model();
-			
+				$response['rows'] = DashboardWidget::model();
+				unset($response['rows'][DashboardWidget::MODEL_NEW]);
 			break;
 			case 'properties':
+			//@TODO
 			break;
 			case 'style':
+			//@TODO
 			break;
 		}
 		
 
-		$response['widget'] = $widget->toArray();
+		
 	});
 
 ?>