Update modules before deployment. Remove environement condition for resources
This commit is contained in:
parent
301fee1246
commit
c79ccdc25e
|
@ -292,22 +292,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||||
false, [], null, {resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'},
|
false, [], null, {resultbestaccessright: '"' + encodeURIComponent("Open Access") + '"'},
|
||||||
null, null, null, null)
|
null, null, null, null)
|
||||||
);
|
);
|
||||||
if (this.properties.environment !== 'production') {
|
this.resourcesService.setResources(this.menuItems, "/" + this.stakeholder.alias);
|
||||||
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"),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (this.stakeholder.type === "funder") {
|
if (this.stakeholder.type === "funder") {
|
||||||
this.menuItems.push(
|
this.menuItems.push(
|
||||||
new MenuItem("develop", "Develop",
|
new MenuItem("develop", "Develop",
|
||||||
|
@ -384,10 +369,7 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||||
new MenuItem("stakeholders", "Browse " + this.stakeholderEntities.STAKEHOLDERS,
|
new MenuItem("stakeholders", "Browse " + this.stakeholderEntities.STAKEHOLDERS,
|
||||||
"https://" + (this.properties.environment == 'beta' ? 'beta.' : '') + 'monitor.openaire.eu/browse', "", false, [], null, {}, null, null, null, null, "_self")
|
"https://" + (this.properties.environment == 'beta' ? 'beta.' : '') + 'monitor.openaire.eu/browse', "", false, [], null, {}, null, null, null, null, "_self")
|
||||||
);
|
);
|
||||||
if (this.properties.environment === 'development') {
|
this.resourcesService.setResources(this.menuItems, '', "https://" + (this.properties.environment === 'beta' ? 'beta.' : '') + 'monitor.openaire.eu');
|
||||||
// @ts-ignore
|
|
||||||
this.resourcesService.setResourcesDeprecated(this.menuItems, '', "https://" + (this.properties.environment === 'beta' ? 'beta.' : '') + 'monitor.openaire.eu');
|
|
||||||
}
|
|
||||||
this.menuItems.push(
|
this.menuItems.push(
|
||||||
new MenuItem("about", "About",
|
new MenuItem("about", "About",
|
||||||
"https://" + (this.properties.environment == 'beta' ? 'beta.' : '') + 'monitor.openaire.eu/about/learn-how', "", false, [], null, {}, null, null, null, null, "_self")
|
"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
|
Loading…
Reference in New Issue