Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. finish() {
  2. if (this.authService.hasUserPermission('MOBBA')) {
  3. this._router.navigateByUrl('/tasks-list');
  4. }
  5.  
  6. if (this.authService.hasUserPermission('MOBHSTS')) {
  7. const offlineList = this.offlineRunner.actions.filter(action => action.status === 'error');
  8.  
  9. if (offlineList) {
  10. this._offlineStore.clear();
  11. offlineList.forEach(act => {
  12. this._offlineStore.addOrUpdate(OfflineMethodMap[act.name], act.params);
  13. });
  14. }
  15. this._router.navigateByUrl('/start');
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement