Skip to content

Commit

Permalink
cleanup of unused changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikNoga committed Jun 14, 2024
1 parent b5cac95 commit 49a5f59
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 337 deletions.
36 changes: 0 additions & 36 deletions src/admin-facility-view/admin-facility-view.module.js

This file was deleted.

32 changes: 4 additions & 28 deletions src/admin-facility-view/facility-view.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
'$q', '$state', 'facility', 'facilityTypes', 'geographicZones', 'facilityOperators',
'programs', 'FacilityRepository', 'loadingModalService', 'notificationService',
'tzPeriodService', 'messageService', 'confirmService', 'wards', 'wardService',
'WARDS_CONSTANTS', 'currentUserService'
'WARDS_CONSTANTS'
];

function controller($q, $state, facility, facilityTypes, geographicZones, facilityOperators,
programs, FacilityRepository, loadingModalService, notificationService,
tzPeriodService, messageService, confirmService, wards, wardService,
WARDS_CONSTANTS, currentUserService) {
WARDS_CONSTANTS) {

var vm = this;

Expand Down Expand Up @@ -174,8 +174,6 @@
*/
vm.wardFacilityType = undefined;

vm.currentUser = undefined;

/**
* @ngdoc method
* @propertyOf admin-facility-view.controller:FacilityViewController
Expand All @@ -201,10 +199,6 @@
});
vm.newWard = getInitialNewWardValue();

currentUserService.getUserInfo().then(function(user) {
vm.currentUser = user;
});

if (!vm.facilityWithPrograms.supportedPrograms) {
vm.facilityWithPrograms.supportedPrograms = [];
}
Expand Down Expand Up @@ -249,7 +243,7 @@
* @methodOf admin-facility-view.controller:FacilityViewController
* @name saveFacilityWithPrograms
*
* @descriptioncurrentUserService
* @description
* Saves facility with supported programs and redirects to facility list screen.
*/
function saveFacilityWithPrograms() {
Expand Down Expand Up @@ -412,24 +406,6 @@
});

var addedWardsPromisses = vm.addedWards.map(function(ward) {
// assign user a role 9e2ee288-b77c-476e-9e15-a05d25c3dcda and a7993216-de2a-4031-b641-18621e3085cb
// for this facility
// var rolesIds = ['9e2ee288-b77c-476e-9e15-a05d25c3dcda', 'a7993216-de2a-4031-b641-18621e3085cb'];

// var additionalRoleAssignments = vm.facility.supportedPrograms.map(function(program) {
// return [{
// programId: program.id,
// warehouseId: '',
// }];
// })

// $q.all(rolesIdsPromisses).then(function(responses) {
// console.log(responses);
// // var roleAssignments = currentUser.roleAssignments;

// // console.log(roleAssignments);
// });

return new FacilityRepository().create(ward);
});

Expand All @@ -447,4 +423,4 @@
});
}
}
})();
})();
13 changes: 0 additions & 13 deletions src/stock-adjustment/messages_en.json

This file was deleted.

134 changes: 0 additions & 134 deletions src/stock-adjustment/stock-adjustment.controller.js

This file was deleted.

29 changes: 0 additions & 29 deletions src/stock-adjustment/stock-adjustment.html

This file was deleted.

32 changes: 0 additions & 32 deletions src/stock-adjustment/stock-adjustment.module.js

This file was deleted.

56 changes: 0 additions & 56 deletions src/stock-adjustment/stock-adjustment.routes.js

This file was deleted.

9 changes: 0 additions & 9 deletions src/stock-adjustment/stock-adjustment.scss

This file was deleted.

0 comments on commit 49a5f59

Please sign in to comment.