@steedos/service-pages 2.5.12-beta.22 → 2.5.12-beta.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -790,19 +790,19 @@
|
|
|
790
790
|
const getSpaceLogo = function(){
|
|
791
791
|
let logoSrc = '';
|
|
792
792
|
const space = db.spaces.findOne(Steedos.getSpaceId())
|
|
793
|
-
if(space
|
|
793
|
+
if(space && space.avatar){
|
|
794
794
|
logoSrc = Steedos.absoluteUrl('api/files/avatars/'+space.avatar)
|
|
795
|
-
}else if(space
|
|
795
|
+
}else if(space && space.avatar_square){
|
|
796
796
|
logoSrc = Steedos.absoluteUrl('api/files/avatars/'+space.avatar_square)
|
|
797
797
|
}else{
|
|
798
798
|
var settings = Session.get("tenant_settings");
|
|
799
799
|
var avatar_url = "";
|
|
800
800
|
if(settings){
|
|
801
|
-
avatar_url = settings
|
|
801
|
+
avatar_url = settings.logo_square_url;
|
|
802
802
|
}
|
|
803
803
|
if(!avatar_url || !settings){
|
|
804
804
|
avatar_url = "/images/logo_platform.png"
|
|
805
|
-
if(Meteor.user()
|
|
805
|
+
if(Meteor.user() && Meteor.user().locale != 'zh-cn'){
|
|
806
806
|
avatar_url = "/images/logo_platform.en-us.png"
|
|
807
807
|
}
|
|
808
808
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-pages",
|
|
3
|
-
"version": "2.5.12-beta.
|
|
3
|
+
"version": "2.5.12-beta.25",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "c5e8864f6e9bfb7e2887dc7ef0cd2becca2f92a6",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"ejs": "^3.1.8"
|
|
14
14
|
}
|