Revision 57574
Added by Konstantinos Triantafyllou almost 5 years ago
home.component.ts | ||
---|---|---|
8 | 8 |
import {Stakeholder, Topic} from "../utils/entities/stakeholder"; |
9 | 9 |
import {SideBarService} from "../library/sharedComponents/sidebar/sideBar.service"; |
10 | 10 |
import {StakeholderService} from "../services/stakeholder.service"; |
11 |
import {Tools} from "../utils/Tools";
|
|
11 |
import {HelperFunctions} from "../openaireLibrary/utils/HelperFunctions.class";
|
|
12 | 12 |
|
13 | 13 |
declare var UIkit; |
14 | 14 |
|
... | ... | |
45 | 45 |
this.stakeholderService.getStakeholderAsObservable().subscribe(stakeholder => { |
46 | 46 |
if (stakeholder) { |
47 | 47 |
this.sideBarService.setHasSidebar(true); |
48 |
this.stakeholder = Tools.copy(stakeholder);
|
|
48 |
this.stakeholder = HelperFunctions.copy(stakeholder);
|
|
49 | 49 |
this.topic = null; |
50 | 50 |
this.title.setTitle(stakeholder.index_name); |
51 | 51 |
} |
Also available in: Unified diff
[MonitorDashboard]: Add service of stakeholder. Move copy to Library. Change name of Tools to IndicatorUtils.