Skip to content

Commit

Permalink
fix(file-mode): disable forward data without remote
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonH committed May 28, 2020
1 parent 1aa4afd commit 08ee080
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/pages/manager/fileMode/fileMode.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { NavigationFlow } from 'src/app/@dataflow/extra';
import { ConnectionService } from '../../connection.service';
import { Subject } from 'rxjs';
import { OperationsListFlow, OperationsListFlowInNode } from 'src/app/@dataflow/rclone';
import { combineLatest, map } from 'rxjs/operators';
import { combineLatest, map, filter } from 'rxjs/operators';
import { CombErr } from 'src/app/@dataflow/core';

@Component({
Expand Down Expand Up @@ -34,7 +34,8 @@ export class FileModeComponent implements OnInit {
return [{}, [].concat(navNode[1], cmdNode[1])] as CombErr<any>;
return [{ ...navNode[0], ...cmdNode[0] }, []];
}
)
),
filter(x=>x[1].length !==0 || !!x[0].remote)
);
})();
this.list$.deploy();
Expand Down

0 comments on commit 08ee080

Please sign in to comment.