Skip to content

Commit

Permalink
Merge branch 'bugfix/fix-redirect-12968' into 'develop'
Browse files Browse the repository at this point in the history
Redirect home instead of 'Take me back'

See merge request !128
  • Loading branch information
Michael Heinzl committed Jan 30, 2017
2 parents f679133 + abccb5b commit ef9197c
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 ef9197c

Please sign in to comment.