Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- finish() {
- if (this.authService.hasUserPermission('MOBBA')) {
- this._router.navigateByUrl('/tasks-list');
- }
- if (this.authService.hasUserPermission('MOBHSTS')) {
- const offlineList = this.offlineRunner.actions.filter(action => action.status === 'error');
- if (offlineList) {
- this._offlineStore.clear();
- offlineList.forEach(act => {
- this._offlineStore.addOrUpdate(OfflineMethodMap[act.name], act.params);
- });
- }
- this._router.navigateByUrl('/start');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement