@steedos/service-pages 2.4.0-beta.4 → 2.4.0-beta.5
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.
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
return {
|
|
109
109
|
render_engine: 'amis',
|
|
110
110
|
name: 'steedosRecordPage',
|
|
111
|
-
bodyClassName: 'p-3',
|
|
112
111
|
schema: {
|
|
113
|
-
"type": "
|
|
112
|
+
"type": "service",
|
|
113
|
+
"className": 'sm:p-3',
|
|
114
114
|
"name": `amis-${appId}-${objectApiName}-detail`,
|
|
115
115
|
"title": "Welcome to Steedos",
|
|
116
116
|
"body": [
|
|
@@ -747,15 +747,13 @@
|
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
Steedos.Page.Header.render = function(appId, tabId){
|
|
750
|
-
const app = _.find(Session.get('app_menus'), {id: appId})
|
|
751
|
-
if (
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
document.body.classList.remove("sidebar")
|
|
758
|
-
}
|
|
750
|
+
const app = _.find(Session.get('app_menus'), {id: appId}) || {}
|
|
751
|
+
if (app.id === 'admin' || (window.innerWidth < 768))
|
|
752
|
+
app.showSidebar = true;
|
|
753
|
+
if (app.showSidebar)
|
|
754
|
+
document.body.classList.add('sidebar')
|
|
755
|
+
else
|
|
756
|
+
document.body.classList.remove("sidebar")
|
|
759
757
|
|
|
760
758
|
try {
|
|
761
759
|
const data = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-pages",
|
|
3
|
-
"version": "2.4.0-beta.
|
|
3
|
+
"version": "2.4.0-beta.5",
|
|
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": "e7eac21c8da88e04b1f01ae87cc939c55f7d90af",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"ejs": "^3.1.8"
|
|
14
14
|
}
|