Project

General

Profile

« Previous | Next » 

Revision 54852

[Trunk]
Add checks when location or document is used.
Get environment from properties file instead of domain

Invite, Subscribe, Manage Buttons: Smaller buttons, smaller icons

View differences:

communities.component.ts
78 78
          }
79 79
        }
80 80
        isProduction():boolean{
81
          return ConnectHelper.isProduction(document.location.hostname);
81
          return this.properties.environment!="development";
82 82

  
83 83
        }
84 84
        getProductionPrefix():string{
85
          return ConnectHelper.getProductionPrefix(document.location.hostname);
85
          return (this.properties.environment =="beta")?"beta.":""
86 86
        }
87 87
        showCommunity(community):boolean{
88 88
          if(community['status'] == "hidden"){

Also available in: Unified diff