@steedos/service-pages 2.4.0-beta.5 → 2.4.0-beta.7
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.
|
@@ -747,14 +747,18 @@
|
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
Steedos.Page.Header.render = function(appId, tabId){
|
|
750
|
-
|
|
750
|
+
let app = _.find(Session.get('app_menus'), {id: appId}) || {}
|
|
751
751
|
if (app.id === 'admin' || (window.innerWidth < 768))
|
|
752
752
|
app.showSidebar = true;
|
|
753
753
|
if (app.showSidebar)
|
|
754
754
|
document.body.classList.add('sidebar')
|
|
755
755
|
else
|
|
756
756
|
document.body.classList.remove("sidebar")
|
|
757
|
-
|
|
757
|
+
if (window.innerWidth >= 768)
|
|
758
|
+
document.body.classList.add('sidebar-open')
|
|
759
|
+
if(app.showSidebar && window.location.pathname.startsWith("/workflow")){
|
|
760
|
+
app = {id: 'workflow'}
|
|
761
|
+
}
|
|
758
762
|
try {
|
|
759
763
|
const data = {
|
|
760
764
|
app
|
|
@@ -895,7 +899,7 @@
|
|
|
895
899
|
hiddenOn: "${app.showSidebar != true}",
|
|
896
900
|
body: [{
|
|
897
901
|
type: "wrapper",
|
|
898
|
-
className: 'sidebar-wrapper
|
|
902
|
+
className: 'sidebar-wrapper px-0 pt-4 pb-16 fixed z-20 h-full ease-in-out duration-300 flex flex-col border-r overflow-y-auto bg-white border-slate-200 block -translate-x-0 sm:w-[220px] w-64',
|
|
899
903
|
body: [
|
|
900
904
|
{
|
|
901
905
|
"type": "steedos-app-menu",
|
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.7",
|
|
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": "581c4cad88be53dbc0c6f4c4f13a3e645702d555",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"ejs": "^3.1.8"
|
|
14
14
|
}
|