bfg-common 1.2.36 → 1.2.38

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.
Files changed (88) hide show
  1. package/assets/localization/local_be.json +2 -2
  2. package/assets/localization/local_en.json +2 -2
  3. package/assets/localization/local_hy.json +2 -2
  4. package/assets/localization/local_kk.json +2 -2
  5. package/assets/localization/local_ru.json +9 -9
  6. package/assets/localization/local_zh.json +2 -2
  7. package/components/atoms/alert/Notification.vue +167 -167
  8. package/components/atoms/autocomplete/Autocomplete.vue +236 -236
  9. package/components/atoms/datepicker/Datepicker.vue +612 -612
  10. package/components/atoms/list/SelectList.vue +62 -62
  11. package/components/atoms/nav/NavBar.vue +116 -116
  12. package/components/atoms/nav/VerticalNavBar.vue +89 -89
  13. package/components/atoms/notificationBar/NotificationBar.vue +175 -175
  14. package/components/atoms/perPage/PerPage.vue +52 -52
  15. package/components/atoms/popup/SimplePopup.vue +90 -90
  16. package/components/atoms/step/VerticalStep.vue +104 -104
  17. package/components/atoms/switch/Switch.vue +107 -107
  18. package/components/atoms/table/dataGrid/DataGridColumnSwitch.vue +206 -206
  19. package/components/atoms/table/dataGrid/DataGridPage.vue +189 -189
  20. package/components/atoms/tabs/Tabs.vue +189 -189
  21. package/components/atoms/tooltip/Signpost.vue +224 -224
  22. package/components/common/BadBrowser.vue +114 -114
  23. package/components/common/adapterManager/AddAdapterWarningModal.vue +82 -82
  24. package/components/common/adapterManager/NoActiveAdaptersModal.vue +62 -62
  25. package/components/common/adapterManager/NoConnectedActiveAdaptersModal.vue +62 -62
  26. package/components/common/addNetworking/AddNetworking.vue +4 -0
  27. package/components/common/addNetworking/config/portPropertiesStep.ts +27 -15
  28. package/components/common/addNetworking/models/interfaces.ts +2 -2
  29. package/components/common/addNetworking/models/types.ts +11 -3
  30. package/components/common/addNetworking/steps/PortProperties.vue +14 -3
  31. package/components/common/browse/Browse.vue +182 -182
  32. package/components/common/browse/blocks/Title.vue +66 -66
  33. package/components/common/diagramMain/Diagram.vue +186 -186
  34. package/components/common/diagramMain/DiagramMain.vue +986 -986
  35. package/components/common/diagramMain/adapter/AdapterItem.vue +227 -227
  36. package/components/common/diagramMain/adapter/AdapterItems.vue +57 -57
  37. package/components/common/diagramMain/modals/editSettings/tabs/port/IpvFourSettings.vue +339 -339
  38. package/components/common/diagramMain/modals/editSettings/tabs/port/PortProperties.vue +202 -202
  39. package/components/common/diagramMain/modals/remove/RemoveModal.vue +226 -226
  40. package/components/common/diagramMain/network/Contents.vue +238 -238
  41. package/components/common/feedback/Buttons.vue +232 -232
  42. package/components/common/feedback/Message.vue +468 -468
  43. package/components/common/feedback/VisitPortal.vue +54 -54
  44. package/components/common/help/navbar/left/Left.vue +159 -159
  45. package/components/common/help/navbar/left/utils/constructAccordion.ts +27 -27
  46. package/components/common/mainNavigationPanel/MainNavigationPanel.vue +359 -359
  47. package/components/common/modals/Rename.vue +165 -165
  48. package/components/common/perPage/PerPage.vue +51 -51
  49. package/components/common/recursionTree/RecursionTree.vue +201 -201
  50. package/components/common/vm/actions/add/config/capabilities.ts +338 -338
  51. package/components/common/vm/actions/add/customizeHardware/virtualHardware/VirtualHardware.vue +657 -657
  52. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/CoresPerSocket.vue +109 -109
  53. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Cpu.vue +383 -383
  54. package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/Limit.vue +234 -234
  55. package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/config/options.ts +28 -28
  56. package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/Memory.vue +316 -316
  57. package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/config/memoryOptions.ts +35 -35
  58. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +445 -445
  59. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newNetwork/NewNetwork.vue +288 -288
  60. package/components/common/vm/actions/add/customizeHardware/virtualHardware/reservation/Reservation.vue +235 -235
  61. package/components/common/vm/actions/add/customizeHardware/virtualHardware/videoCard/VideoCard.vue +177 -177
  62. package/components/common/vm/actions/add/customizeHardware/vmoptions/bootOptions/order/Order.vue +197 -197
  63. package/components/common/vm/actions/add/customizeHardware/vmoptions/generalOptions/GeneralOptions.vue +181 -181
  64. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/CopyPaste.vue +51 -51
  65. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +253 -253
  66. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/keymap/Keymap.vue +55 -55
  67. package/components/common/vm/actions/add/select/storage/config/config.ts +154 -154
  68. package/components/common/vm/actions/clone/Clone.vue +544 -544
  69. package/components/common/vm/actions/clone/select/options/Options.vue +65 -65
  70. package/components/common/vm/actions/clone/utils.ts +43 -43
  71. package/components/common/wizards/datastore/add/Add.vue +1 -0
  72. package/components/common/wizards/datastore/add/nfs/Nfs.vue +94 -91
  73. package/components/common/wizards/datastore/add/nfs/configuration/Configuration.vue +377 -373
  74. package/components/common/wizards/datastore/add/nfs/configuration/serversList/ServersList.vue +123 -123
  75. package/components/common/wizards/datastore/add/nfs/kerberosAuthentication/KerberosAuthentication.vue +54 -54
  76. package/components/common/wizards/datastore/add/sharedStorm/deviceSelection/hostTable/HostTable.vue +131 -131
  77. package/components/common/wizards/datastore/add/sharedStorm/partitionConfiguration/PartitionConfiguration.vue +230 -230
  78. package/composables/useLocal.ts +38 -38
  79. package/minify.js +146 -146
  80. package/models/store/interfaces.ts +37 -37
  81. package/models/store/storage/interfaces.ts +32 -32
  82. package/models/store/types.ts +32 -32
  83. package/modules/fixContentBuild/utils/methods.ts +114 -114
  84. package/package.json +1 -1
  85. package/public/spice-console/application/codec.js +257 -257
  86. package/public/spice-console/lib/rasterEngine.js +907 -907
  87. package/public/spice-console/network/spicechannel.js +369 -369
  88. package/utils/contentBuild.ts +34 -34
@@ -1,82 +1,82 @@
1
- <template>
2
- <div>
3
- <atoms-modal
4
- test-id="add-adapter-warning"
5
- width="576"
6
- height="420"
7
- :show="props.show"
8
- :title="props.title"
9
- class="diagram-action__remove"
10
- @hide="onHideModal"
11
- >
12
- <template #modalBody>
13
- <div class="modal-body-content modal-body-content__confirmation">
14
- <div class="confirm-icon-container">
15
- <atoms-diagram-icon name="is-warning" />
16
- </div>
17
- <p class="preserve-newlines">
18
- {{ localization.noFreeNetworkAdaptersAddSwitch }}
19
- </p>
20
- </div>
21
- </template>
22
- <template #modalFooter>
23
- <span>
24
- <button
25
- :id="`${props.testId}-modal-close-button`"
26
- type="button"
27
- class="btn btn-primary"
28
- @click="onHideModal"
29
- >
30
- {{ localization.ok }}
31
- </button>
32
- </span>
33
- </template>
34
- </atoms-modal>
35
- </div>
36
- </template>
37
-
38
- <script setup lang="ts">
39
- import { UI_I_Localization } from '~/models/interfaces'
40
-
41
- // Props from up
42
- const props = defineProps<{
43
- show: boolean
44
- modalName: string
45
- viewName: string
46
- title: string
47
- testId: string
48
- }>()
49
-
50
- // UI_I_Localization
51
- const localization = computed<UI_I_Localization>(() => useLocal())
52
-
53
- // Modal
54
- const emits = defineEmits<{
55
- (event: 'hide'): void
56
- }>()
57
- const onHideModal = (): void => {
58
- emits('hide')
59
- }
60
- </script>
61
-
62
- <style scoped lang="scss">
63
- :deep(.diagram-action__remove) {
64
- .modal-body-content {
65
- display: flex;
66
-
67
- .confirm-icon-container {
68
- margin-right: 20px;
69
- }
70
-
71
- .preserve-newlines {
72
- white-space: pre-line;
73
- font-size: 15px;
74
- }
75
- }
76
- }
77
- .table-fixed-height {
78
- min-height: 287px;
79
- max-height: 287px;
80
- overflow-y: auto;
81
- }
82
- </style>
1
+ <template>
2
+ <div>
3
+ <atoms-modal
4
+ test-id="add-adapter-warning"
5
+ width="576"
6
+ height="420"
7
+ :show="props.show"
8
+ :title="props.title"
9
+ class="diagram-action__remove"
10
+ @hide="onHideModal"
11
+ >
12
+ <template #modalBody>
13
+ <div class="modal-body-content modal-body-content__confirmation">
14
+ <div class="confirm-icon-container">
15
+ <atoms-diagram-icon name="is-warning" />
16
+ </div>
17
+ <p class="preserve-newlines">
18
+ {{ localization.noFreeNetworkAdaptersAddSwitch }}
19
+ </p>
20
+ </div>
21
+ </template>
22
+ <template #modalFooter>
23
+ <span>
24
+ <button
25
+ :id="`${props.testId}-modal-close-button`"
26
+ type="button"
27
+ class="btn btn-primary"
28
+ @click="onHideModal"
29
+ >
30
+ {{ localization.ok }}
31
+ </button>
32
+ </span>
33
+ </template>
34
+ </atoms-modal>
35
+ </div>
36
+ </template>
37
+
38
+ <script setup lang="ts">
39
+ import { UI_I_Localization } from '~/models/interfaces'
40
+
41
+ // Props from up
42
+ const props = defineProps<{
43
+ show: boolean
44
+ modalName: string
45
+ viewName: string
46
+ title: string
47
+ testId: string
48
+ }>()
49
+
50
+ // UI_I_Localization
51
+ const localization = computed<UI_I_Localization>(() => useLocal())
52
+
53
+ // Modal
54
+ const emits = defineEmits<{
55
+ (event: 'hide'): void
56
+ }>()
57
+ const onHideModal = (): void => {
58
+ emits('hide')
59
+ }
60
+ </script>
61
+
62
+ <style scoped lang="scss">
63
+ :deep(.diagram-action__remove) {
64
+ .modal-body-content {
65
+ display: flex;
66
+
67
+ .confirm-icon-container {
68
+ margin-right: 20px;
69
+ }
70
+
71
+ .preserve-newlines {
72
+ white-space: pre-line;
73
+ font-size: 15px;
74
+ }
75
+ }
76
+ }
77
+ .table-fixed-height {
78
+ min-height: 287px;
79
+ max-height: 287px;
80
+ overflow-y: auto;
81
+ }
82
+ </style>
@@ -1,62 +1,62 @@
1
- <template>
2
- <div>
3
- <atoms-modal
4
- test-id="no-active-adapters"
5
- width="576px"
6
- height="257px"
7
- :show="props.show"
8
- :title="localization.physicalNetworkAdaptersWarning"
9
- @hide="onHide"
10
- @submit="onSubmit"
11
- >
12
- <template #modalBody>
13
- <div class="modal-body-content modal-body-content__confirmation">
14
- <div class="confirm-icon-container">
15
- <atoms-diagram-icon name="is-warning" />
16
- </div>
17
- <p class="preserve-newlines">
18
- {{
19
- `${localization.thereAreNoActivePhysicalNetworkAdaptersForSwitch}
20
-
21
- ${localization.okOrCancelToReviewYourChanges}`
22
- }}
23
- </p>
24
- </div>
25
- </template>
26
- </atoms-modal>
27
- </div>
28
- </template>
29
-
30
- <script setup lang="ts">
31
- import { UI_I_Localization } from '~/models/interfaces'
32
-
33
- const props = defineProps<{
34
- show: boolean
35
- title: string
36
- }>()
37
-
38
- const emits = defineEmits<{
39
- (event: 'hide'): void
40
- (event: 'submit'): void
41
- }>()
42
-
43
- const onHide = () => emits('hide')
44
- const onSubmit = () => emits('submit')
45
-
46
- const localization = computed<UI_I_Localization>(() => useLocal())
47
- </script>
48
-
49
- <style scoped lang="scss">
50
- :deep(.modal-body-content.modal-body-content__confirmation) {
51
- display: flex;
52
-
53
- .confirm-icon-container {
54
- margin-right: 20px;
55
- }
56
-
57
- .preserve-newlines {
58
- white-space: pre-line;
59
- font-size: 15px;
60
- }
61
- }
62
- </style>
1
+ <template>
2
+ <div>
3
+ <atoms-modal
4
+ test-id="no-active-adapters"
5
+ width="576px"
6
+ height="257px"
7
+ :show="props.show"
8
+ :title="localization.physicalNetworkAdaptersWarning"
9
+ @hide="onHide"
10
+ @submit="onSubmit"
11
+ >
12
+ <template #modalBody>
13
+ <div class="modal-body-content modal-body-content__confirmation">
14
+ <div class="confirm-icon-container">
15
+ <atoms-diagram-icon name="is-warning" />
16
+ </div>
17
+ <p class="preserve-newlines">
18
+ {{
19
+ `${localization.thereAreNoActivePhysicalNetworkAdaptersForSwitch}
20
+
21
+ ${localization.okOrCancelToReviewYourChanges}`
22
+ }}
23
+ </p>
24
+ </div>
25
+ </template>
26
+ </atoms-modal>
27
+ </div>
28
+ </template>
29
+
30
+ <script setup lang="ts">
31
+ import { UI_I_Localization } from '~/models/interfaces'
32
+
33
+ const props = defineProps<{
34
+ show: boolean
35
+ title: string
36
+ }>()
37
+
38
+ const emits = defineEmits<{
39
+ (event: 'hide'): void
40
+ (event: 'submit'): void
41
+ }>()
42
+
43
+ const onHide = () => emits('hide')
44
+ const onSubmit = () => emits('submit')
45
+
46
+ const localization = computed<UI_I_Localization>(() => useLocal())
47
+ </script>
48
+
49
+ <style scoped lang="scss">
50
+ :deep(.modal-body-content.modal-body-content__confirmation) {
51
+ display: flex;
52
+
53
+ .confirm-icon-container {
54
+ margin-right: 20px;
55
+ }
56
+
57
+ .preserve-newlines {
58
+ white-space: pre-line;
59
+ font-size: 15px;
60
+ }
61
+ }
62
+ </style>
@@ -1,62 +1,62 @@
1
- <template>
2
- <div>
3
- <atoms-modal
4
- test-id="no-connected-active-adapter"
5
- width="576px"
6
- height="257px"
7
- :show="props.show"
8
- :title="localization.physicalNetworkAdaptersWarning"
9
- @hide="onHide"
10
- @submit="onSubmit"
11
- >
12
- <template #modalBody>
13
- <div class="modal-body-content modal-body-content__confirmation">
14
- <div class="confirm-icon-container">
15
- <atoms-diagram-icon name="is-warning" />
16
- </div>
17
- <p class="preserve-newlines">
18
- {{
19
- `${localization.allActiveAdaptersAreDisconnected}
20
-
21
- ${localization.okOrCancelToReviewYourChanges}`
22
- }}
23
- </p>
24
- </div>
25
- </template>
26
- </atoms-modal>
27
- </div>
28
- </template>
29
-
30
- <script setup lang="ts">
31
- import { UI_I_Localization } from '~/models/interfaces'
32
-
33
- const props = defineProps<{
34
- show: boolean
35
- title: string
36
- }>()
37
-
38
- const emits = defineEmits<{
39
- (event: 'hide'): void
40
- (event: 'submit'): void
41
- }>()
42
-
43
- const onHide = () => emits('hide')
44
- const onSubmit = () => emits('submit')
45
-
46
- const localization = computed<UI_I_Localization>(() => useLocal())
47
- </script>
48
-
49
- <style scoped lang="scss">
50
- :deep(.modal-body-content.modal-body-content__confirmation) {
51
- display: flex;
52
-
53
- .confirm-icon-container {
54
- margin-right: 20px;
55
- }
56
-
57
- .preserve-newlines {
58
- white-space: pre-line;
59
- font-size: 15px;
60
- }
61
- }
62
- </style>
1
+ <template>
2
+ <div>
3
+ <atoms-modal
4
+ test-id="no-connected-active-adapter"
5
+ width="576px"
6
+ height="257px"
7
+ :show="props.show"
8
+ :title="localization.physicalNetworkAdaptersWarning"
9
+ @hide="onHide"
10
+ @submit="onSubmit"
11
+ >
12
+ <template #modalBody>
13
+ <div class="modal-body-content modal-body-content__confirmation">
14
+ <div class="confirm-icon-container">
15
+ <atoms-diagram-icon name="is-warning" />
16
+ </div>
17
+ <p class="preserve-newlines">
18
+ {{
19
+ `${localization.allActiveAdaptersAreDisconnected}
20
+
21
+ ${localization.okOrCancelToReviewYourChanges}`
22
+ }}
23
+ </p>
24
+ </div>
25
+ </template>
26
+ </atoms-modal>
27
+ </div>
28
+ </template>
29
+
30
+ <script setup lang="ts">
31
+ import { UI_I_Localization } from '~/models/interfaces'
32
+
33
+ const props = defineProps<{
34
+ show: boolean
35
+ title: string
36
+ }>()
37
+
38
+ const emits = defineEmits<{
39
+ (event: 'hide'): void
40
+ (event: 'submit'): void
41
+ }>()
42
+
43
+ const onHide = () => emits('hide')
44
+ const onSubmit = () => emits('submit')
45
+
46
+ const localization = computed<UI_I_Localization>(() => useLocal())
47
+ </script>
48
+
49
+ <style scoped lang="scss">
50
+ :deep(.modal-body-content.modal-body-content__confirmation) {
51
+ display: flex;
52
+
53
+ .confirm-icon-container {
54
+ margin-right: 20px;
55
+ }
56
+
57
+ .preserve-newlines {
58
+ white-space: pre-line;
59
+ font-size: 15px;
60
+ }
61
+ }
62
+ </style>
@@ -71,6 +71,7 @@
71
71
  :network-label-existing-error-message="networkLabelExistingErrorMessage"
72
72
  :mtu-from-switch="mtuFromSwitch"
73
73
  :error="error"
74
+ :project="props.project"
74
75
  @set-error-empty="onSetErrorFieldEmpty"
75
76
  @change-error-messages="onChangeErrorMessages"
76
77
  @hide-error-message-alert="onHideErrorMessageAlert"
@@ -126,6 +127,7 @@
126
127
 
127
128
  <script setup lang="ts">
128
129
  import { UI_I_ArbitraryObject, UI_I_Localization } from '~/models/interfaces'
130
+ import { UI_T_Project } from '~/models/types'
129
131
  import {
130
132
  createZeroSchemeReadyCompleteFunc,
131
133
  createFirstSchemeReadyCompleteFunc,
@@ -176,6 +178,7 @@ const props = withDefaults(
176
178
  isNetworkInvalid?: UI_I_NetworkLabelCheckExisting
177
179
  freeAdapters: UI_I_Adapter[]
178
180
  adapters: UI_I_SwitchAdapters
181
+ project?: UI_T_Project
179
182
  }>(),
180
183
  {
181
184
  isNetworkInvalid: () => isNetworkInvalidInitial,
@@ -184,6 +187,7 @@ const props = withDefaults(
184
187
  title: '',
185
188
  freeAdapters: () => [],
186
189
  standardSwitchesInitial: () => [],
190
+ project: 'procurator',
187
191
  }
188
192
  )
189
193
 
@@ -2,18 +2,30 @@ import { UI_I_Localization } from '~/models/interfaces'
2
2
  import { UI_I_PortPropertiesEnabledService } from '~/components/common/addNetworking/models/interfaces'
3
3
 
4
4
  export const portPropertiesEnabledServicesFunc = (
5
- localization: UI_I_Localization
6
- ): UI_I_PortPropertiesEnabledService[] => [
7
- { label: localization.provisioning, modelValue: 'provisioning' },
8
- // {
9
- // label: localization.faultToleranceLogging,
10
- // modelValue: 'faultToleranceLogging',
11
- // },
12
- { label: localization.management, modelValue: 'management' },
13
- // { label: localization.procuratorReplication, modelValue: 'replication' },
14
- // { label: localization.procuratorReplicationNFC, modelValue: 'replicationNFC' },
15
- { label: localization.vSAN, modelValue: 'vSAN' },
16
- // { label: localization.procuratorBackupNFC, modelValue: 'backupNFC' },
17
- // { label: localization.nvmEOverTCP, modelValue: 'nVMeOverTCP' },
18
- // { label: localization.nvmEOverRDMA, modelValue: 'nVMeOverRDMA' },
19
- ]
5
+ localization: UI_I_Localization,
6
+ isSphereProject: boolean
7
+ ): UI_I_PortPropertiesEnabledService[] => {
8
+ let enabledServices = [
9
+ { label: localization.provisioning, modelValue: 'provisioning' },
10
+ // {
11
+ // label: localization.faultToleranceLogging,
12
+ // modelValue: 'faultToleranceLogging',
13
+ // },
14
+ { label: localization.management, modelValue: 'management' },
15
+ // { label: localization.procuratorReplication, modelValue: 'replication' },
16
+ // { label: localization.procuratorReplicationNFC, modelValue: 'replicationNFC' },
17
+ { label: localization.vSAN, modelValue: 'vSAN' },
18
+ // { label: localization.procuratorBackupNFC, modelValue: 'backupNFC' },
19
+ // { label: localization.nvmEOverTCP, modelValue: 'nVMeOverTCP' },
20
+ // { label: localization.nvmEOverRDMA, modelValue: 'nVMeOverRDMA' },
21
+ ]
22
+
23
+ if (!isSphereProject) {
24
+ enabledServices = enabledServices.filter(
25
+ (service: UI_I_PortPropertiesEnabledService) =>
26
+ service.modelValue !== 'provisioning'
27
+ )
28
+ }
29
+
30
+ return enabledServices
31
+ }
@@ -2,7 +2,7 @@ import { UI_E_StepStatus } from '~/components/common/addNetworking/models/enums'
2
2
  import { UI_T_TCP } from '~/components/common/addNetworking/models/types'
3
3
 
4
4
  export interface UI_I_Services {
5
- vMotion: boolean
5
+ vMotion?: boolean
6
6
  provisioning: boolean
7
7
  faultToleranceLogging: boolean
8
8
  management: boolean
@@ -137,7 +137,7 @@ export interface UI_I_AddNetworkingZeroOrFirstSchemeDataSend {
137
137
  mtu: number
138
138
  services: {
139
139
  management: boolean
140
- vmotion: boolean
140
+ vmotion?: boolean
141
141
  provisioning: boolean
142
142
  vsan: boolean
143
143
  fault_tolerance_logging: boolean
@@ -1,5 +1,13 @@
1
1
  export type UI_T_ConnectionSettingsFieldName = 'networkLabel' | 'vlanId'
2
- export type UI_T_IpFourSettingsFieldName = 'ipFourAddress' | 'subnetMask' | 'defaultGateway'
2
+ export type UI_T_IpFourSettingsFieldName =
3
+ | 'ipFourAddress'
4
+ | 'subnetMask'
5
+ | 'defaultGateway'
3
6
  export type UI_T_PortPropertiesFieldName = 'networkLabel' | 'vlanId' | 'mtu'
4
- export type UI_T_TargetDeviceFieldName = 'network' | 'switch' | 'standardSwitch' | 'mtu'
5
- export type UI_T_TCP = 'default' | '1' | '2'
7
+ export type UI_T_TargetDeviceFieldName =
8
+ | 'network'
9
+ | 'switch'
10
+ | 'standardSwitch'
11
+ | 'mtu'
12
+ export type UI_T_TCP = 'default' | '1' | '2'
13
+ export type UI_T_Project = 'procurator' | 'sphere'
@@ -135,7 +135,7 @@
135
135
  <select id="tsp" v-model="fields.tcp">
136
136
  <option value="default">{{ localization.default }}</option>
137
137
  <option value="1">{{ localization.provisioning }}</option>
138
- <option value="2">{{ localization.vMotion }}</option>
138
+ <!-- <option value="2">{{ localization.vMotion }}</option>-->
139
139
  </select>
140
140
  </div>
141
141
  </div>
@@ -158,10 +158,17 @@
158
158
  { disabled: fields.tcp !== 'default' },
159
159
  ]"
160
160
  >
161
- <label>
161
+ <label v-if="isSphereProject">
162
162
  <input v-model="fields.services.vMotion" type="checkbox" />
163
163
  {{ localization.vMotion }}
164
164
  </label>
165
+ <label v-else>
166
+ <input
167
+ v-model="fields.services.provisioning"
168
+ type="checkbox"
169
+ />
170
+ {{ localization.provisioning }}
171
+ </label>
165
172
  </div>
166
173
  </div>
167
174
  </div>
@@ -194,6 +201,7 @@
194
201
 
195
202
  <script setup lang="ts">
196
203
  import { UI_I_ArbitraryObject, UI_I_Localization } from '~/models/interfaces'
204
+ import { UI_T_Project } from '~/models/types'
197
205
  import {
198
206
  servicesInitial,
199
207
  vlanIdSelectData,
@@ -221,6 +229,7 @@ const props = withDefaults(
221
229
  networkLabelExistingErrorMessage: string
222
230
  mtuFromSwitch: number
223
231
  error: UI_I_ArbitraryObject<string>
232
+ project: UI_T_Project
224
233
  }>(),
225
234
  {
226
235
  mtuFromSwitch: 1500,
@@ -230,9 +239,11 @@ const props = withDefaults(
230
239
  // UI_I_Localization
231
240
  const localization = computed<UI_I_Localization>(() => useLocal())
232
241
 
242
+ const isSphereProject = computed<boolean>(() => props.project === 'sphere')
243
+
233
244
  // Making port properties enabled services template
234
245
  const portPropertiesEnabledServices = computed(() =>
235
- portPropertiesEnabledServicesFunc(localization.value)
246
+ portPropertiesEnabledServicesFunc(localization.value, isSphereProject.value)
236
247
  )
237
248
 
238
249
  // Define emits for changing data and validation messages