Skip to content

Commit

Permalink
Redirect home instead of 'Take me back'
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Heinzl committed Jan 30, 2017
1 parent f679133 commit abccb5b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions frontend/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,7 @@ export class AppComponent implements OnInit, OnDestroy, ErrorHandler {
return;
}

this.modal.alert()
.size('sm')
.title('Unauthorized')
.body('You are not permitted to access this page')
.okBtn('Take me back')
.open()
.then(promise => {
promise.result.then(result => this.goBack());
});
this.gotoHome();
}

private notFoundError(resp: Response): void {
Expand Down

0 comments on commit abccb5b

Please sign in to comment.