fix(striker-ui): install and driver ISO cannot be the same

This commit is contained in:
Tsu-ba-me 2022-05-04 17:31:01 -04:00
parent 97269e33c9
commit 1414117ac1

View File

@ -1537,6 +1537,7 @@ const ProvisionServerDialog = ({
'Install ISO', 'Install ISO',
fileSelectItems, fileSelectItems,
{ {
disableItem: (value) => value === inputDriverISOFileUUID,
hideItem: (value) => !includeFileUUIDs.includes(value), hideItem: (value) => !includeFileUUIDs.includes(value),
selectProps: { selectProps: {
onChange: ({ target: { value } }) => { onChange: ({ target: { value } }) => {
@ -1555,6 +1556,7 @@ const ProvisionServerDialog = ({
'Driver ISO', 'Driver ISO',
fileSelectItems, fileSelectItems,
{ {
disableItem: (value) => value === inputInstallISOFileUUID,
hideItem: (value) => !includeFileUUIDs.includes(value), hideItem: (value) => !includeFileUUIDs.includes(value),
selectProps: { selectProps: {
onChange: ({ target: { value } }) => { onChange: ({ target: { value } }) => {