Skip to content

Commit

Permalink
Fix regression on FunctionAppContextComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
ehamai authored and hartra344 committed Mar 30, 2018
1 parent b626bd6 commit daf5f62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ReplaySubject } from 'rxjs/ReplaySubject';


export abstract class FunctionAppContextComponent extends ErrorableComponent implements OnDestroy {
private _viewInfo: TreeViewInfo<any>;
public viewInfo: TreeViewInfo<any>;
public context: FunctionAppContext;

protected viewInfoEvents: Observable<TreeViewInfo<any> & {
Expand All @@ -30,14 +30,10 @@ export abstract class FunctionAppContextComponent extends ErrorableComponent imp
private timeout: number;

@Input('viewInfo')
public set viewInfo(viewInfo: TreeViewInfo<any>) {
private set viewInfoComponent_viewInfo(viewInfo: TreeViewInfo<any>) {
this.viewInfoSubject.next(viewInfo);
}

public get viewInfo() {
return this._viewInfo;
}

constructor(componentName: string, functionAppService: FunctionAppService, broadcastService: BroadcastService, setBusy?: Function, private clearBusy?: Function) {
super(componentName, broadcastService);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export class SiteDashboardComponent extends NavigableComponent implements OnDest
dirty: false,
componentFactory: null,
componentInput: input
? Object.assign({}, input, { viewInfo: input.viewInfoInput })
? Object.assign({}, input, { viewInfo: input.viewInfoInput, viewInfoComponent_viewInfo: input.viewInfoInput })
: {}
};

Expand Down

0 comments on commit daf5f62

Please sign in to comment.