Update modules before deployment. Remove environement condition for resources

This commit is contained in:
Konstantinos Triantafyllou 2022-09-21 12:03:18 +03:00
parent 301fee1246
commit c79ccdc25e
3 changed files with 4 additions and 22 deletions

View File

@ -292,22 +292,7 @@ export class AppComponent implements OnInit, OnDestroy {
false, [], null, {resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'},
null, null, null, null)
);
if (this.properties.environment !== 'production') {
this.resourcesService.setResourcesDeprecated(this.menuItems, "/" + this.stakeholder.alias);
} else {
this.menuItems.push(
new MenuItem("methodology", "Methodology",
"", "/" + this.stakeholder.alias + "/methodology", false, [], null, {},
null, null, null, null, "_blank", "internal", false,
[
new MenuItem("methodology", "Terminology and construction",
"", "/" + this.stakeholder.alias + "/methodology", false, [], null, {}),
new MenuItem("methodology", "See how it works",
"", "/" + this.stakeholder.alias + "/methodology", false, [], null, {}, null, "how"),
]
)
);
}
this.resourcesService.setResources(this.menuItems, "/" + this.stakeholder.alias);
if (this.stakeholder.type === "funder") {
this.menuItems.push(
new MenuItem("develop", "Develop",
@ -384,10 +369,7 @@ export class AppComponent implements OnInit, OnDestroy {
new MenuItem("stakeholders", "Browse " + this.stakeholderEntities.STAKEHOLDERS,
"https://" + (this.properties.environment == 'beta' ? 'beta.' : '') + 'monitor.openaire.eu/browse', "", false, [], null, {}, null, null, null, null, "_self")
);
if (this.properties.environment === 'development') {
// @ts-ignore
this.resourcesService.setResourcesDeprecated(this.menuItems, '', "https://" + (this.properties.environment === 'beta' ? 'beta.' : '') + 'monitor.openaire.eu');
}
this.resourcesService.setResources(this.menuItems, '', "https://" + (this.properties.environment === 'beta' ? 'beta.' : '') + 'monitor.openaire.eu');
this.menuItems.push(
new MenuItem("about", "About",
"https://" + (this.properties.environment == 'beta' ? 'beta.' : '') + 'monitor.openaire.eu/about/learn-how', "", false, [], null, {}, null, null, null, null, "_self")

@ -1 +1 @@
Subproject commit d9afcfcb06f200d91bd93dca94628ae334d74968
Subproject commit 05cfd20bb9376b39ef8482c90be1c5d3d5b8f6cd

@ -1 +1 @@
Subproject commit f085a90973b216b89065848dba864e2d581acc84
Subproject commit bc0edde68dccfc17c1abc5d5aa3721f720aee852