Revision 57706
Added by Konstantinos Triantafyllou over 4 years ago
monitor.component.ts | ||
---|---|---|
14 | 14 |
import {Category, ChartHelper, IndicatorPath, Stakeholder, SubCategory, Topic} from "../utils/entities/stakeholder"; |
15 | 15 |
import {StatisticsService} from "../utils/services/statistics.service"; |
16 | 16 |
import {Item, Sidebar} from "../utils/entities/sidebar"; |
17 |
import {SideBarService} from "../library/sharedComponents/sidebar/sideBar.service"; |
|
18 | 17 |
import {IndicatorUtils} from "../utils/indicator-utils"; |
18 |
import {LayoutService} from "../library/sharedComponents/sidebar/layout.service"; |
|
19 | 19 |
|
20 | 20 |
@Component({ |
21 | 21 |
selector: 'monitor', |
... | ... | |
51 | 51 |
private helper: HelperService, |
52 | 52 |
private stakeholderService: StakeholderService, |
53 | 53 |
private statisticsService: StatisticsService, |
54 |
private sideBarService: SideBarService,
|
|
54 |
private layoutService: LayoutService,
|
|
55 | 55 |
private seoService: SEOService, |
56 | 56 |
private cdr: ChangeDetectorRef, |
57 | 57 |
private sanitizer: DomSanitizer) { |
... | ... | |
100 | 100 |
} |
101 | 101 |
|
102 | 102 |
public get open() { |
103 |
return this.sideBarService.open;
|
|
103 |
return this.layoutService.open;
|
|
104 | 104 |
} |
105 | 105 |
|
106 | 106 |
public toggleOpen(event = null) { |
107 | 107 |
if(!event) { |
108 |
this.sideBarService.setOpen(!this.open);
|
|
108 |
this.layoutService.setOpen(!this.open);
|
|
109 | 109 |
} else if(event && event['value'] === true) { |
110 |
this.sideBarService.setOpen(false);
|
|
110 |
this.layoutService.setOpen(false);
|
|
111 | 111 |
} |
112 | 112 |
} |
113 | 113 |
|
Also available in: Unified diff
[Monitor Dashboard]: Merge create and edit modals. Rename SidebarService to LayoutService and add hasSidebar on it