[Connect|Trunk]: Fix bug with menu build before communities has been loaded. Remove blue background from Info cards on home page.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@56392 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-07-08 09:59:21 +00:00
parent ca16e83c27
commit b29d3eac05
4 changed files with 7 additions and 4 deletions

View File

@ -79,10 +79,12 @@ export class AppComponent {
this._communitiesService.updateCommunities(this.properties, this.properties.communitiesAPI);
if(this.properties.environment == "development") {
this.route.queryParams.subscribe(data => {
this.showMenu = false;
communityId = data['communityId'];
this.buildMenu(communityId);
});
} else {
this.showMenu = false;
communityId = ConnectHelper.getCommunityFromDomain(this.properties.domain);
this.buildMenu(communityId);
}
@ -103,9 +105,11 @@ export class AppComponent {
public buildMenu(communityId: string) {
var community = null;
this.community = null;
this.showMenu = false;
this._communitiesService.getCommunitiesState().subscribe (
communities => {
if(communities.length === 0 && communityId !== null && communityId !== '') {
return;
}
for(var com of communities){
if( (communityId && communityId!="" && com.communityId == communityId
&& community !=null) ||

View File

@ -89,7 +89,6 @@
}
.connectInfoCard {
background: #ECF3FD;
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.24);
}

View File

@ -116,5 +116,5 @@
"reCaptchaSiteKey": "6LcVtFIUAAAAAB2ac6xYivHxYXKoUvYRPi-6_rLu",
"admins" : ["kostis30fylloy@gmail.com","argirok@di.uoa.gr"]
"admins" : ["kostis30fylloy@gmail.com"]
}

View File

@ -72,7 +72,7 @@ $(document).ready(function(){
<link rel="stylesheet" href="assets/common-assets/common/theme.css">
<link rel="stylesheet" href="assets/common-assets/common/custom.css">
<link rel="stylesheet" href="assets/common-assets/library.css?v=2">
<link rel="stylesheet" href="assets/connect-custom.css?v=2">
<link rel="stylesheet" href="assets/connect-custom.css?v=3">
<script src="assets/common-assets/clipboard.min.js"></script>