[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 git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@56806 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
5f9e29c783
commit
228009bb34
|
@ -21,6 +21,6 @@
|
|||
##coppies of previous deployments exist in "/home/argiro.kokogiannaki/connect-portal/connectYYYY-MM-DD"
|
||||
##run "npm i"
|
||||
##become nodejs user: "sudo su nodejs -s /bin/bash"
|
||||
##go to "cd /srv/www/portal"
|
||||
##go to "cd /srv/www/portal/connect"
|
||||
##cp files from "cp -r HOME_PATH/deploy-folder/* ."
|
||||
##restart portal "pm2 restart connect"
|
||||
|
|
|
@ -104,9 +104,8 @@ export class AppComponent {
|
|||
let community = null;
|
||||
this.community = null;
|
||||
this._communitiesService.getCommunitiesState().subscribe (
|
||||
communities => {
|
||||
|
||||
if(communities.length === 0 && communityId !== null && communityId !== '') {
|
||||
communities => {
|
||||
if( !communities || communities.length == 0 && communityId !== null && communityId !== '') {
|
||||
return;
|
||||
}
|
||||
for(var com of communities){
|
||||
|
|
|
@ -105,6 +105,9 @@ export class CommunitiesComponent {
|
|||
|
||||
this._communitiesService.getCommunitiesState().subscribe(
|
||||
communitiesResults => {
|
||||
if(!communitiesResults){
|
||||
return;
|
||||
}
|
||||
//this.communitiesResults = communitiesResults;
|
||||
//this.communitiesToShow = this.communitiesResults.slice();
|
||||
//console.log(communitiesResults);
|
||||
|
|
|
@ -101,6 +101,9 @@ export class SearchCommunitiesComponent {
|
|||
private initCommunities(params: Map<string, string>) {
|
||||
this.subResults = this._communitiesService.getCommunitiesState().subscribe(
|
||||
data => {
|
||||
if(!data){
|
||||
return;
|
||||
}
|
||||
for(let i = 0; i < data.length; i++) {
|
||||
this.totalResults[i] = data[i];
|
||||
this.totalResults[i].isManager = false;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"mainColor": "#0080aa",
|
||||
"secondaryColor": "#005A77",
|
||||
"mainColor": "#4C9CD5",
|
||||
"secondaryColor": "#24857F",
|
||||
"panel": {
|
||||
"background": {
|
||||
"gradientDirection": "to right",
|
||||
|
|
Loading…
Reference in New Issue