accept deny button
This commit is contained in:
parent
afa1e03a3d
commit
66afb01c34
|
@ -58,10 +58,30 @@ export class ListComponent implements OnInit, AfterContentInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleAccept() {
|
handleAccept() {
|
||||||
|
this.store.dispatch(new ListStore.Accept(this.selected));
|
||||||
|
this.noAuthProbes$.subscribe(
|
||||||
|
(noAuthProbes: NoAuthProbe[]) => {
|
||||||
|
this.dataSource = new MatTableDataSource(noAuthProbes);
|
||||||
|
this.dataSource.sort = this.sort;
|
||||||
|
},
|
||||||
|
(error: RPCError) => {
|
||||||
|
console.log(error.message);
|
||||||
|
}
|
||||||
|
);
|
||||||
console.log(this.selected.id + ' accept');
|
console.log(this.selected.id + ' accept');
|
||||||
}
|
}
|
||||||
|
|
||||||
handleDeny() {
|
handleDeny() {
|
||||||
|
this.store.dispatch(new ListStore.Deny(this.selected));
|
||||||
|
this.noAuthProbes$.subscribe(
|
||||||
|
(noAuthProbes: NoAuthProbe[]) => {
|
||||||
|
this.dataSource = new MatTableDataSource(noAuthProbes);
|
||||||
|
this.dataSource.sort = this.sort;
|
||||||
|
},
|
||||||
|
(error: RPCError) => {
|
||||||
|
console.log(error.message);
|
||||||
|
}
|
||||||
|
)
|
||||||
console.log(this.selected.id + ' deny');
|
console.log(this.selected.id + ' deny');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user