diff options
| author | bob <bcz@cs.brown.edu> | 2019-03-29 18:49:22 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-03-29 18:49:22 -0400 |
| commit | 6e993fb5817e8ddce756396e53883a42530f52bb (patch) | |
| tree | aeda672a6181aa50400be258285570f725c1a7b1 /src/client/northstar/operations/BaseOperation.ts | |
| parent | 6e0439f36216af6ee25ff9a65d296e6f9ff28fd3 (diff) | |
brushes mostly working - some problems with cycles.
Diffstat (limited to 'src/client/northstar/operations/BaseOperation.ts')
| -rw-r--r-- | src/client/northstar/operations/BaseOperation.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/northstar/operations/BaseOperation.ts b/src/client/northstar/operations/BaseOperation.ts index 94e0849af..21d1db749 100644 --- a/src/client/northstar/operations/BaseOperation.ts +++ b/src/client/northstar/operations/BaseOperation.ts @@ -10,7 +10,8 @@ export abstract class BaseOperation { @observable public Error: string = ""; @observable public OverridingFilters: FilterModel[] = []; - @observable public Result?: Result = undefined; + //@observable + public Result?: Result = undefined; @observable public ComputationStarted: boolean = false; public OperationReference?: OperationReference = undefined; @@ -45,8 +46,11 @@ export abstract class BaseOperation { } + public YieldResult: ((result: Result) => void) | undefined; @action public SetResult(result: Result): void { + if (this.YieldResult) + this.YieldResult(result); this.Result = result; } |
