Skip to content

Commit

Permalink
trying to make spinning icon disappear after click and return to page.
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Nov 8, 2024
1 parent 4577341 commit e275956
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ const componentName = 'signInButton'

class SignInButtonController {
/* @ngInject */
constructor ($log, $scope, $document, sessionService, gettext, envService) {
constructor ($log, $scope, $rootScope, $document, sessionService, gettext, envService) {
this.$log = $log
this.$scope = $scope
this.$rootScope = $rootScope
this.$document = $document
this.$injector = angular.injector()
this.sessionService = sessionService
this.gettext = gettext
this.imgDomain = envService.read('imgDomain')

// Listen for location change success event
$scope.$on('$locationChangeSuccess', () => {
this.$rootScope.$on('$locationChangeSuccess', () => {
this.isSigningIn = false
})
}
Expand Down

0 comments on commit e275956

Please sign in to comment.