accept deny button

This commit is contained in:
geek 2018-03-16 18:48:01 +09:00
parent afa1e03a3d
commit 66afb01c34

View File

@ -58,10 +58,30 @@ export class ListComponent implements OnInit, AfterContentInit {
}
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');
}
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');
}
}