-
- unblockServer (serverBlock: ServerBlock) {
- const host = serverBlock.blockedServer.host
-
- this.blocklistService.unblockServerByUser(host)
- .subscribe(
- () => {
- this.notifier.success(this.i18n('Instance {{host}} unmuted.', { host }))
-
- this.loadData()
- }
- )
- }
-
- protected loadData () {
- return this.blocklistService.getUserServerBlocklist(this.pagination, this.sort)
- .subscribe(
- resultList => {
- this.blockedServers = resultList.data
- this.totalRecords = resultList.total
- },
-
- err => this.notifier.error(err.message)
- )
- }