|
1 | 1 | angular.module('platformWebApp')
|
2 |
| -.controller('platformWebApp.modulesListController', ['$scope', 'platformWebApp.bladeNavigationService', 'uiGridConstants', 'platformWebApp.uiGridHelper', 'platformWebApp.moduleHelper', '$timeout', |
3 |
| -function ($scope, bladeNavigationService, uiGridConstants, uiGridHelper, moduleHelper, $timeout) { |
| 2 | + .controller('platformWebApp.modulesListController', ['$scope', 'platformWebApp.bladeNavigationService', 'uiGridConstants', 'platformWebApp.uiGridHelper', 'platformWebApp.moduleHelper', '$timeout', '$translate', |
| 3 | +function ($scope, bladeNavigationService, uiGridConstants, uiGridHelper, moduleHelper, $timeout, $translate) { |
4 | 4 | $scope.uiGridConstants = uiGridConstants;
|
5 | 5 | var blade = $scope.blade;
|
6 | 6 |
|
@@ -59,6 +59,21 @@ function ($scope, bladeNavigationService, uiGridConstants, uiGridHelper, moduleH
|
59 | 59 | executeMethod: function () { $scope.confirmActionInDialog('uninstall', $scope.gridApi.selection.getSelectedRows()); },
|
60 | 60 | canExecuteMethod: installedItemsChecked,
|
61 | 61 | permission: 'platform:module:manage'
|
| 62 | + }, |
| 63 | + { |
| 64 | + name: "platform.commands.grouping", |
| 65 | + icon: 'fas fa-cubes', |
| 66 | + executeMethod: function () { |
| 67 | + blade.isGrouped = !blade.isGrouped; |
| 68 | + if (blade.isGrouped) { |
| 69 | + this.name = $translate.instant("platform.commands.ungrouping"); |
| 70 | + } |
| 71 | + else { |
| 72 | + this.name = $translate.instant("platform.commands.grouping"); |
| 73 | + } |
| 74 | + }, |
| 75 | + canExecuteMethod: function () { return true; }, |
| 76 | + permission: 'platform:module:view' |
62 | 77 | }
|
63 | 78 | ];
|
64 | 79 | break;
|
|
0 commit comments