Revision 56806
Added by Argiro Kokogiannaki almost 5 years ago
modules/uoa-connect-portal/trunk/src/app/searchPages/communities/searchCommunities.component.ts | ||
---|---|---|
101 | 101 |
private initCommunities(params: Map<string, string>) { |
102 | 102 |
this.subResults = this._communitiesService.getCommunitiesState().subscribe( |
103 | 103 |
data => { |
104 |
if(!data){ |
|
105 |
return; |
|
106 |
} |
|
104 | 107 |
for(let i = 0; i < data.length; i++) { |
105 | 108 |
this.totalResults[i] = data[i]; |
106 | 109 |
this.totalResults[i].isManager = false; |
modules/uoa-connect-portal/trunk/src/app/communities/communities.component.ts | ||
---|---|---|
105 | 105 |
|
106 | 106 |
this._communitiesService.getCommunitiesState().subscribe( |
107 | 107 |
communitiesResults => { |
108 |
if(!communitiesResults){ |
|
109 |
return; |
|
110 |
} |
|
108 | 111 |
//this.communitiesResults = communitiesResults; |
109 | 112 |
//this.communitiesToShow = this.communitiesResults.slice(); |
110 | 113 |
//console.log(communitiesResults); |
modules/uoa-connect-portal/trunk/src/app/app.component.ts | ||
---|---|---|
104 | 104 |
let community = null; |
105 | 105 |
this.community = null; |
106 | 106 |
this._communitiesService.getCommunitiesState().subscribe ( |
107 |
communities => { |
|
108 |
|
|
109 |
if(communities.length === 0 && communityId !== null && communityId !== '') { |
|
107 |
communities => { |
|
108 |
if( !communities || communities.length == 0 && communityId !== null && communityId !== '') { |
|
110 | 109 |
return; |
111 | 110 |
} |
112 | 111 |
for(var com of communities){ |
modules/uoa-connect-portal/trunk/src/assets/customizationOptions.json | ||
---|---|---|
1 | 1 |
{ |
2 |
"mainColor": "#0080aa",
|
|
3 |
"secondaryColor": "#005A77",
|
|
2 |
"mainColor": "#4C9CD5",
|
|
3 |
"secondaryColor": "#24857F",
|
|
4 | 4 |
"panel": { |
5 | 5 |
"background": { |
6 | 6 |
"gradientDirection": "to right", |
modules/uoa-connect-portal/trunk/deploy/prepareDeploy.sh | ||
---|---|---|
21 | 21 |
##coppies of previous deployments exist in "/home/argiro.kokogiannaki/connect-portal/connectYYYY-MM-DD" |
22 | 22 |
##run "npm i" |
23 | 23 |
##become nodejs user: "sudo su nodejs -s /bin/bash" |
24 |
##go to "cd /srv/www/portal" |
|
24 |
##go to "cd /srv/www/portal/connect"
|
|
25 | 25 |
##cp files from "cp -r HOME_PATH/deploy-folder/* ." |
26 | 26 |
##restart portal "pm2 restart connect" |
Also available in: Unified diff
[Connect|Trunk]
Communities Service get communities: changed to null as initial value -> add extra check for components using it
Customizations: change the default colors for communities