Skip to content

Commit

Permalink
feat(connection-service): add list cmd flow
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonH committed May 24, 2020
1 parent 1617e5d commit 83d32bf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/app/pages/connection.service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { Injectable } from '@angular/core';
import { CurrentUserService } from './current-user.service';
import { interval, Observable } from 'rxjs';
import { NoopAuthFlow, ConnectionFlow, NoopAuthFlowSupNode } from '../@dataflow/rclone';
import {
NoopAuthFlow,
ConnectionFlow,
NoopAuthFlowSupNode,
ListCmdFlow,
} from '../@dataflow/rclone';
import { CombErr } from '../@dataflow/core';
import { map, combineLatest } from 'rxjs/operators';

Expand All @@ -12,6 +17,7 @@ export class ConnectionService {
private timer = interval(3000);
public rst$: NoopAuthFlow;
public connection$: ConnectionFlow;
public listCmd$: ListCmdFlow;

constructor(currentUserService: CurrentUserService) {
const outer = this;
Expand All @@ -27,5 +33,10 @@ export class ConnectionService {
public prerequest$: Observable<CombErr<NoopAuthFlowSupNode>> = outer.rst$.getSupersetOutput();
})();
this.connection$.deploy();

this.listCmd$ = new (class extends ListCmdFlow {
public prerequest$ = outer.connection$.getSupersetOutput();
})();
this.listCmd$.deploy();
}
}

0 comments on commit 83d32bf

Please sign in to comment.