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 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 (mywidget[key].name == "relation") {
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: "LANGUAGE.users",
202
+ text: "Users",
203
203
  href: "zuser",
204
204
  },
205
205
  {
206
- text: "LANGUAGE.access_role",
206
+ text: "Role Access",
207
207
  href: "zrole",
208
208
  },
209
209
  {
210
- text: "LANGUAGE.logs_uploads",
210
+ text: "Log Uploads",
211
211
  href: "zlogs_upload",
212
212
  },
213
213
  {
214
- text: "LANGUAGE.user_access",
214
+ text: "User Access",
215
215
  href: "zuser_company",
216
216
  },
217
217
  {
218
- text: "LANGUAGE.company",
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: 'LANGUAGE.users',
185
- icon: 'tabler-users-plus',
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: 'LANGUAGE.systems',
200
+ text: 'Systems',
201
201
  icon: 'tabler-settings-check',
202
202
  children: children,
203
203
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zet-lib",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "zet is a library that part of zet generator.",
5
5
  "engines": {
6
6
  "node": ">=18"