Skip to content

Commit

Permalink
Removed superset reports
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarhinc committed Mar 15, 2019
1 parent a7356b0 commit 2008887
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/report/superset-report.routes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* This program is part of the OpenLMIS logistics management information system platform software.
* Copyright © 2017 VillageReach
*
* This program is free software: you can redistribute it and/or modify it under the terms
* of the GNU Affero General Public License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*  
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
* See the GNU Affero General Public License for more details. You should have received a copy of
* the GNU Affero General Public License along with this program. If not, see
* http://www.gnu.org/licenses.  For additional information contact [email protected]
*/

(function() {

'use strict';

angular
.module('report')
.config(config);

config.$inject = ['$stateProvider', 'SUPERSET_REPORTS'];

function config($stateProvider) {

$stateProvider.state('openlmis.reports.list.superset', {
abstract: true,
url: '/superset',
views: {
// we need the main page to flex to the window size
'@': {
templateUrl: 'openlmis-main-state/flex-page.html'
}
}
});

// Angola: removed all superset subpages
}

})();
35 changes: 35 additions & 0 deletions src/report/superset-reports.constant.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* This program is part of the OpenLMIS logistics management information system platform software.
* Copyright © 2017 VillageReach
*
* This program is free software: you can redistribute it and/or modify it under the terms
* of the GNU Affero General Public License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*  
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
* See the GNU Affero General Public License for more details. You should have received a copy of
* the GNU Affero General Public License along with this program. If not, see
* http://www.gnu.org/licenses.  For additional information contact [email protected]
*/

(function() {

'use strict';

/**
* @ngdoc object
* @name report.SUPERSET_REPORTS
*
* @description
* This is constant defining available superset reports.
*/
angular
.module('report')
.constant('SUPERSET_REPORTS', getReports());

function getReports() {
// Angola: returning empty list of superset reports to not show them on reports screen
return {};
}
})();

0 comments on commit 2008887

Please sign in to comment.