Deploy:
create deploy folder move property files for beta and production there App component: for menu item overview, the required routes changed to null git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@54624 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
7f3295d232
commit
2055bc7487
|
@ -5,10 +5,10 @@
|
|||
##run the script
|
||||
|
||||
## uncommect from here-->
|
||||
# cp connect-admin-beta-properties.json ./src/assets/env-properties.json;
|
||||
# pico src/app/openaireLibrary/utils/properties/environment-specific.service.ts;
|
||||
# cp beta-properties.json ../src/assets/env-properties.json;
|
||||
# pico ../src/app/openaireLibrary/utils/properties/environment-specific.service.ts;
|
||||
# npm run build;
|
||||
# rm -rf dist/assets/common-assets/.svn/;
|
||||
# rm -rf ../dist/assets/common-assets/.svn/;
|
||||
# echo 'Ready!';
|
||||
# echo 'Now copy dist to the server!'
|
||||
##<-- to here
|
|
@ -5,10 +5,10 @@
|
|||
##run the script
|
||||
|
||||
## uncommect from here-->
|
||||
# cp connect-admin-production-properties.json ./src/assets/env-properties.json;
|
||||
# pico src/app/openaireLibrary/utils/properties/environment-specific.service.ts;
|
||||
# cp production-properties.json ../src/assets/env-properties.json;
|
||||
# pico ../src/app/openaireLibrary/utils/properties/environment-specific.service.ts;
|
||||
# npm run build;
|
||||
# rm -rf dist/assets/common-assets/.svn/;
|
||||
# rm -rf ../dist/assets/common-assets/.svn/;
|
||||
# echo 'Ready!';
|
||||
# echo 'Now copy dist to the server!'
|
||||
##<-- to here
|
|
@ -81,14 +81,14 @@ constructor( private route: ActivatedRoute, private propertiesService:Environm
|
|||
this.community = {id: com.communityId, name: (com.shortTitle)?com.shortTitle:com.title, logoUrl:com.logoUrl};
|
||||
this.communityType = com.type;
|
||||
this.menuItems= [
|
||||
{rootItem: new MenuItem("dashboard","Overview","/dashboard","/dashboard",false,[],[],{communityId:com.communityId}),
|
||||
{rootItem: new MenuItem("dashboard","Overview","/dashboard","/dashboard",false,[],null,{communityId:com.communityId}),
|
||||
items: []
|
||||
}
|
||||
];
|
||||
}else if(countCommunities == 1 &&index_managerOfCommunity!=null ){
|
||||
this.community = {id: communities[index_managerOfCommunity].communityId, name: (communities[index_managerOfCommunity].shortTitle)?communities[index_managerOfCommunity].shortTitle:com.title, logoUrl:communities[index_managerOfCommunity].logoUrl};
|
||||
this.menuItems= [
|
||||
{rootItem: new MenuItem("dashboard","Administration Dashboard","/dashboard","/dashboard",false,[],[],{communityId:communities[index_managerOfCommunity].communityId}),
|
||||
{rootItem: new MenuItem("dashboard","Overview","/dashboard","/dashboard",false,[],null,{communityId:communities[index_managerOfCommunity].communityId}),
|
||||
items: []
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue