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.

+
+
+
diff --git a/src/sass/ng-admin.scss b/src/sass/ng-admin.scss index c315706b..013528dd 100644 --- a/src/sass/ng-admin.scss +++ b/src/sass/ng-admin.scss @@ -63,6 +63,17 @@ ul.collapsible { } } +.dashboard-invite { + margin: 3em; + padding: 1em; + text-align: center; + background-color: #DFF0D8; + p { + padding: .5em; + margin: 0; + } +} + /** * Grid */