diff --git a/src/javascripts/ng-admin/Crud/delete/DeleteController.js b/src/javascripts/ng-admin/Crud/delete/DeleteController.js index eeb91f3b..6376ad59 100644 --- a/src/javascripts/ng-admin/Crud/delete/DeleteController.js +++ b/src/javascripts/ng-admin/Crud/delete/DeleteController.js @@ -15,7 +15,6 @@ define(function () { this.actions = view.actions(); this.entity = view.getEntity(); this.notification = notification; - this.$scope.entry = entry; this.$scope.view = view; $scope.$on('$destroy', this.destroy.bind(this)); diff --git a/src/javascripts/ng-admin/Main/component/controller/DashboardController.js b/src/javascripts/ng-admin/Main/component/controller/DashboardController.js index f21b492a..cf3aedf5 100644 --- a/src/javascripts/ng-admin/Main/component/controller/DashboardController.js +++ b/src/javascripts/ng-admin/Main/component/controller/DashboardController.js @@ -36,6 +36,7 @@ define(function (require) { this.PanelBuilder.getPanelsData(sortField, sortDir).then(function (panels) { self.panels = panels; }); + this.hasEntities = this.PanelBuilder.hasEntities(); }; /** diff --git a/src/javascripts/ng-admin/Main/component/service/PanelBuilder.js b/src/javascripts/ng-admin/Main/component/service/PanelBuilder.js index 16da247b..799da7de 100644 --- a/src/javascripts/ng-admin/Main/component/service/PanelBuilder.js +++ b/src/javascripts/ng-admin/Main/component/service/PanelBuilder.js @@ -13,6 +13,10 @@ function PanelBuilder($q, ReadQueries, Configuration, AdminDescription) { this.Configuration = Configuration(); } +PanelBuilder.prototype.hasEntities = function() { + return this.Configuration.entities.length > 0; +} + /** * Returns all elements of each dashboard panels * diff --git a/src/javascripts/ng-admin/Main/view/dashboard.html b/src/javascripts/ng-admin/Main/view/dashboard.html index 6446b220..912d958e 100644 --- a/src/javascripts/ng-admin/Main/view/dashboard.html +++ b/src/javascripts/ng-admin/Main/view/dashboard.html @@ -1,4 +1,4 @@ -
All dependencies are set, ng-admin is ready to run!
+Now you can update the configuration: add entities to the admin, then refresh.
+