bfg-common 1.4.676 → 1.4.678

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.
@@ -7,7 +7,7 @@ import type { UI_I_Localization } from '~/lib/models/interfaces'
7
7
  import type { UI_I_RecentTaskItem } from '~/lib/models/store/tasks/interfaces'
8
8
  import { UI_E_RecentTaskStatus } from '~/lib/models/store/tasks/enums'
9
9
  // import { E_NodeIconsByState } from '~/lib/models/enums'
10
- import { UI_E_TabsByType } from '~/components/common/pages/tasks/table/lib/models/enums'
10
+ // import { UI_E_TabsByType } from '~/components/common/pages/tasks/table/lib/models/enums'
11
11
  import {
12
12
  UI_E_RTaskChipColor,
13
13
  UI_E_RTaskStatusIcon,
@@ -163,18 +163,21 @@ export const getBodyDataFunc = (
163
163
  const { $formattedDatetime } = useNuxtApp() as any
164
164
 
165
165
  return bodyData.map((task, index: number) => {
166
-
167
166
  const iconClassName = taskConfig.iconFunc(task.targetType)
168
167
  const id = taskConfig.idFunc(task)
168
+ const nav = taskConfig.navFunc(task.targetType)
169
+ const type = taskConfig.typeFunc(task.targetType)
169
170
 
170
171
  // const iconClassName = E_NodeIconsByState[`${task.targetType}_Normal`]
171
172
  // const id = task.extra?.created_id || task.target
172
173
  const targetData = {
173
174
  id,
175
+ nav,
176
+ type,
174
177
  icon: iconClassName,
175
- nav: UI_E_TabsByType[task.targetType],
176
- type: task.targetType,
177
- isLink: true,
178
+ // nav: UI_E_TabsByType[task.targetType],
179
+ // type: task.targetType,
180
+ isLink: !!iconClassName,
178
181
  testId: `${task.targetType}-item`,
179
182
  }
180
183
 
@@ -11,13 +11,3 @@ export enum UI_E_RTaskStatusIcon {
11
11
  'status-check',
12
12
  'error-outline',
13
13
  }
14
-
15
- export enum UI_E_TabsByType { // TODO временно так надо такой enum сделать глобально для (Sphere, Procurator)
16
- 'host' = 'v',
17
- 'vm' = 'v',
18
- 'datastore' = 's',
19
- 'network' = 'n',
20
- 'backup' = 'b',
21
- 'folder' = 'v',
22
- 'file' = 'v',
23
- }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.676",
4
+ "version": "1.4.678",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",