bfg-common 1.4.676 → 1.4.677
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,
|
|
@@ -166,13 +166,15 @@ export const getBodyDataFunc = (
|
|
|
166
166
|
|
|
167
167
|
const iconClassName = taskConfig.iconFunc(task.targetType)
|
|
168
168
|
const id = taskConfig.idFunc(task)
|
|
169
|
+
const nav = taskConfig.navFunc(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,
|
|
174
176
|
icon: iconClassName,
|
|
175
|
-
nav: UI_E_TabsByType[task.targetType],
|
|
177
|
+
// nav: UI_E_TabsByType[task.targetType],
|
|
176
178
|
type: task.targetType,
|
|
177
179
|
isLink: true,
|
|
178
180
|
testId: `${task.targetType}-item`,
|
|
@@ -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
|
-
}
|