zet-lib 1.4.2 → 1.4.4
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.
- package/lib/Util.js +3 -1
- package/lib/zCache.js +5 -5
- package/lib/zRole.js +3 -3
- package/package.json +1 -1
package/lib/Util.js
CHANGED
|
@@ -1542,7 +1542,9 @@ Util.tableShowInGrid = (arr, qey, MYMODEL, myCache, companyId) => {
|
|
|
1542
1542
|
var keyFields = key + "Fields";
|
|
1543
1543
|
var keyObject = key + "Object";
|
|
1544
1544
|
let value = item[key];
|
|
1545
|
-
if
|
|
1545
|
+
if(mywidget[key].name == "select"){
|
|
1546
|
+
value = mywidget[key].fields[value] || ""
|
|
1547
|
+
} else if (mywidget[key].name == "relation") {
|
|
1546
1548
|
value = value
|
|
1547
1549
|
? Util.array_id_to_zname(
|
|
1548
1550
|
myCache.get(
|
package/lib/zCache.js
CHANGED
|
@@ -199,23 +199,23 @@ zCache.MENU_SYSTEMS = () => {
|
|
|
199
199
|
let obj = {};
|
|
200
200
|
obj.users = [
|
|
201
201
|
{
|
|
202
|
-
text: "
|
|
202
|
+
text: "Users",
|
|
203
203
|
href: "zuser",
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
|
-
text: "
|
|
206
|
+
text: "Role Access",
|
|
207
207
|
href: "zrole",
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
text: "
|
|
210
|
+
text: "Log Uploads",
|
|
211
211
|
href: "zlogs_upload",
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
|
-
text: "
|
|
214
|
+
text: "User Access",
|
|
215
215
|
href: "zuser_company",
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
|
-
text: "
|
|
218
|
+
text: "Company",
|
|
219
219
|
href: "zcompany",
|
|
220
220
|
},
|
|
221
221
|
];
|
package/lib/zRole.js
CHANGED
|
@@ -181,8 +181,8 @@ a.menuSystems = (req, res) => {
|
|
|
181
181
|
delete menus.users
|
|
182
182
|
} else {
|
|
183
183
|
let userManagament = {
|
|
184
|
-
text: '
|
|
185
|
-
icon: 'tabler-
|
|
184
|
+
text: 'Users & Access',
|
|
185
|
+
icon: 'tabler-user-cog',
|
|
186
186
|
children: children,
|
|
187
187
|
}
|
|
188
188
|
arr.push(userManagament)
|
|
@@ -197,7 +197,7 @@ a.menuSystems = (req, res) => {
|
|
|
197
197
|
delete menus.systems
|
|
198
198
|
} else {
|
|
199
199
|
let settings = {
|
|
200
|
-
text: '
|
|
200
|
+
text: 'Systems',
|
|
201
201
|
icon: 'tabler-settings-check',
|
|
202
202
|
children: children,
|
|
203
203
|
}
|