|
|
@@ -16,6 +16,7 @@ export class DiscComponent implements OnInit, AfterViewInit {
|
|
|
@Input() region: string;
|
|
|
@Input() scenario = 'baseline';
|
|
|
@Input() show: 'name' | 'factor' | 'scenario' = 'name';
|
|
|
+ @Input() inSitu = false;
|
|
|
divId = 'graph-place';
|
|
|
private arrowUse;
|
|
|
private regionData;
|
|
|
@@ -43,10 +44,10 @@ export class DiscComponent implements OnInit, AfterViewInit {
|
|
|
this.drawGraph();
|
|
|
});
|
|
|
this.yearGraphService.graphRefreshes.subscribe(({region, domain}) => {
|
|
|
- if (region) {
|
|
|
+ if (this.inSitu && region) {
|
|
|
this.region = region;
|
|
|
}
|
|
|
- if (domain) {
|
|
|
+ if (this.inSitu && domain) {
|
|
|
this.domain = domain;
|
|
|
}
|
|
|
this.updateGraph();
|