@steedos/service-pages 2.4.0 → 2.4.2

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.
@@ -209,14 +209,14 @@
209
209
  if (page.render_engine && page.render_engine != 'redash') {
210
210
 
211
211
  let schema = typeof page.schema === 'string' ? JSON.parse(page.schema) : page.schema;
212
-
212
+ const rootUrl = __meteor_runtime_config__.ROOT_URL;
213
213
  const defData = lodash.defaultsDeep({}, data , {data: data} , {
214
214
  data: {
215
215
  app_id: data.appId,
216
216
  object_name: data.objectName,
217
217
  record_id: data.recordId,
218
218
  context: {
219
- rootUrl: __meteor_runtime_config__.ROOT_URL,
219
+ rootUrl: rootUrl.endsWith("/") ? rootUrl.substr(0, rootUrl.length-1) : rootUrl,
220
220
  tenantId: Creator.USER_CONTEXT.spaceId,
221
221
  userId: Creator.USER_CONTEXT.userId,
222
222
  authToken: Creator.USER_CONTEXT.user.authToken,
@@ -717,7 +717,14 @@
717
717
  "className": "slds-button_icon slds-global-header__icon"
718
718
  }
719
719
  ],
720
- },]
720
+ },
721
+ {
722
+ "type": "steedos-app-launcher",
723
+ "showAppName": false,
724
+ "appId": "${app.id}",
725
+ "visibleOn": "${isMobile}",
726
+ },
727
+ ]
721
728
  }
722
729
  ],
723
730
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/service-pages",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
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": "70a4e7417d8d86c47cf5c7e3bbe0e89f2cee4222",
11
+ "gitHead": "0e880759058022827b737df329c254aff2bc94dc",
12
12
  "dependencies": {
13
13
  "ejs": "^3.1.8"
14
14
  }