diff --git a/src/packages/noauth/component/list/list.component.ts b/src/packages/noauth/component/list/list.component.ts index 708e171..02e9188 100644 --- a/src/packages/noauth/component/list/list.component.ts +++ b/src/packages/noauth/component/list/list.component.ts @@ -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'); } }