diff --git a/src/javascripts/ng-admin/Crud/list/Datagrid.html b/src/javascripts/ng-admin/Crud/list/Datagrid.html index bd4e1486..ab16a3e7 100644 --- a/src/javascripts/ng-admin/Crud/list/Datagrid.html +++ b/src/javascripts/ng-admin/Crud/list/Datagrid.html @@ -11,7 +11,7 @@ {{ field.label() }} - + Actions @@ -25,7 +25,7 @@ - + diff --git a/src/javascripts/ng-admin/Crud/list/DatagridController.js b/src/javascripts/ng-admin/Crud/list/DatagridController.js index e3a7c47a..e3ef6948 100644 --- a/src/javascripts/ng-admin/Crud/list/DatagridController.js +++ b/src/javascripts/ng-admin/Crud/list/DatagridController.js @@ -17,6 +17,7 @@ define(function () { this.$location = $location; this.$anchorScroll = $anchorScroll; this.filters = {}; + this.shouldDisplayActions = this.$scope.listActions().length > 0; $scope.toggleSelect = this.toggleSelect.bind(this); $scope.toggleSelectAll = this.toggleSelectAll.bind(this); @@ -119,11 +120,6 @@ define(function () { this.$scope.selection = []; }; - - DatagridController.prototype.shouldDisplayActions = function () { - return this.$scope.listActions().length > 0; - }; - DatagridController.$inject = ['$scope', '$location', '$anchorScroll']; return DatagridController;