@finema/finework-layer 1.0.31 → 1.0.33

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.0.33](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.32...1.0.33) (2026-04-09)
4
+
5
+ ### Features
6
+
7
+ * reqeust ([5621fc0](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/5621fc0a12a9bb3d936bfc37e4f3211abdc496a1))
8
+
9
+ ## [1.0.32](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.31...1.0.32) (2026-04-09)
10
+
11
+ ### Features
12
+
13
+ * request active ([74ae5f3](https://gitlab.finema.co/finema/finework/finework-frontend-layer/commit/74ae5f3916ed2038d742c716c55f4a347b8c483f))
14
+
3
15
  ## [1.0.31](https://gitlab.finema.co/finema/finework/finework-frontend-layer/compare/1.0.30...1.0.31) (2026-04-07)
4
16
 
5
17
  ### Features
@@ -156,6 +156,8 @@ const getImage = (item: INotificationItem): string | null => {
156
156
  return `/admin/evaluation.png`
157
157
  } else if (item.source_type?.startsWith('COSTSHEET')) {
158
158
  return `/admin/cost-sheet.png`
159
+ } else if (item.source_type?.startsWith('REQUEST')) {
160
+ return `/admin/request.png`
159
161
  }
160
162
 
161
163
  return null
@@ -333,7 +333,7 @@ const dailyApps = computed(() => [
333
333
  label: 'Request',
334
334
  description: 'ระบบขอ ลา เบิก อนุมัติรายการต่างๆ',
335
335
  to: routes.request.myRequest.requests.to,
336
- status: StatusPortal.DEVELOPING,
336
+ status: StatusPortal.ACTIVE,
337
337
  },
338
338
  ])
339
339
 
@@ -521,15 +521,15 @@ const peopleApps = computed(() => [
521
521
  },
522
522
  ]
523
523
  : []),
524
- ...(auth.hasPermission(UserModule.SETTING, Permission.SUPER)
524
+ ...(auth.hasPermission(UserModule.REQUEST, Permission.SUPER, Permission.ADMIN)
525
525
  ? [
526
526
  {
527
527
  name: 'Request Admin',
528
528
  logo: '/admin/request-admin.svg',
529
529
  label: 'Request Admin',
530
530
  description: 'ระบบจัดการคำขออนุมัติต่างๆ',
531
- to: routes.requestAdmin.dashboard.to,
532
- status: StatusPortal.DEVELOPING,
531
+ to: routes.requestAdmin.userRequest.users.to,
532
+ status: StatusPortal.ACTIVE,
533
533
  },
534
534
  ]
535
535
  : []),
@@ -165,7 +165,7 @@ export const routes = {
165
165
  label: 'My Requests',
166
166
  to: '/request',
167
167
  icon: 'ph:clipboard',
168
- permissions: ['request:USER'],
168
+ permissions: ['request:USER', 'request:ADMIN', 'request:SUPER'],
169
169
  },
170
170
  },
171
171
  },
@@ -174,7 +174,15 @@ export const routes = {
174
174
  label: 'แดชบอร์ด',
175
175
  to: '/request-admin',
176
176
  icon: 'ph:grid-four',
177
- permissions: ['request:USER', 'request:ADMIN', 'request:SUPER'],
177
+ permissions: ['request:ADMIN', 'request:SUPER'],
178
+ },
179
+ userRequest: {
180
+ users: {
181
+ label: 'รายการคำขอพนักงาน',
182
+ to: '/request-admin/users',
183
+ icon: 'ph:clipboard',
184
+ permissions: ['request:ADMIN', 'request:SUPER'],
185
+ },
178
186
  },
179
187
  },
180
188
  resource: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@finema/finework-layer",
3
3
  "type": "module",
4
- "version": "1.0.31",
4
+ "version": "1.0.33",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground -o",