setTimeout(() => this.router.navigate([ '/admin/friends/list' ]), 1000)
},
- err => this.notificationsService.error('Error', err.text)
+ err => this.notificationsService.error('Error', err)
)
}
)
this.requestService.getStats().subscribe(
stats => this.stats = stats,
- err => this.notificationsService.error('Error', err.text)
+ err => this.notificationsService.error('Error', err)
)
}
this.router.navigate([ '/admin/users/list' ])
},
- err => this.error = err.text
+ err => this.error = err
)
}
this.userService.getUser(userId).subscribe(
user => this.onUserFetched(user),
- err => this.error = err.text
+ err => this.error = err
)
})
}
this.router.navigate([ '/admin/users/list' ])
},
- err => this.error = err.text
+ err => this.error = err
)
}
this.router.navigate([ '/videos/list' ])
},
- err => this.error = err.text
+ err => this.error = err
)
}
}
this.hide()
},
- err => this.notificationsService.error('Error', err.text)
+ err => this.notificationsService.error('Error', err)
)
}
}
this.userRating = 'like'
},
- err => this.notificationsService.error('Error', err.text)
+ err => this.notificationsService.error('Error', err)
)
}
this.userRating = 'dislike'
},
- err => this.notificationsService.error('Error', err.text)
+ err => this.notificationsService.error('Error', err)
)
}
}
},
- err => this.notificationsService.error('Error', err.text)
+ err => this.notificationsService.error('Error', err)
)
}