Ver código fonte

Dashboard : wip

idleman 2 anos atrás
pai
commit
a60fa6074d

+ 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();
+		
 	});
 
 ?>