Skip to content

Commit

Permalink
no longer needed since we use complete links
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Aug 24, 2023
1 parent b7ef276 commit 7c84fbf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
14 changes: 0 additions & 14 deletions app/assets/javascripts/controllers/bootstrap.js

This file was deleted.

11 changes: 3 additions & 8 deletions app/assets/javascripts/services/bootstrapSvc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@

angular.module('UtilitiesModule')
.service('bootstrapSvc', [
'$http',
'$location',
'$rootScope',
'userSvc', 'caseSvc', 'caseTryNavSvc',
function bootstrapSvc($http, $location, $rootScope, userSvc, caseSvc, caseTryNavSvc) {
'userSvc',
function bootstrapSvc($rootScope, userSvc) {
var self = this;

// Public Functions
self.run = run;

function run(caseNo, tryNo) {
function run() {
// Fetch the current user who is logged in
userSvc.getCurrentUser()
.then(function() {
Expand All @@ -26,9 +24,6 @@ angular.module('UtilitiesModule')
// instead of having to call the userSvc.getUser() function all the time.
$rootScope.currentUser = user;

if (user && angular.isDefined(caseNo) && angular.isDefined(tryNo)) {
caseTryNavSvc.pathRequested({caseNo: caseNo, tryNo: tryNo});
}
});
}
}
Expand Down

0 comments on commit 7c84fbf

Please sign in to comment.