Skip to content

Commit

Permalink
PMM-12191 Backup: Allow Compatible Services for all vendors type (#672)
Browse files Browse the repository at this point in the history
* PMM-12191: Allow Compatible Services for all vendors type

* PMM-12191: Disable radio button only if vendor is not mysql or mongo

---------

Co-authored-by: “dorac-ext” <[email protected]>
Co-authored-by: Artem Gavrilov <[email protected]>
  • Loading branch information
3 people authored Jul 18, 2023
1 parent 3507d74 commit 78728b9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ export const RestoreBackupModal: FC<RestoreBackupModalProps> = ({
name="serviceType"
label={Messages.serviceSelection}
fullWidth
disabled={values.vendor !== DATABASE_LABELS[Databases.mysql]}
disabled={
values.vendor !== DATABASE_LABELS[Databases.mysql] &&
values.vendor !== DATABASE_LABELS[Databases.mongodb]
}
/>
<TextInputField disabled name="vendor" label={Messages.vendor} />

Expand Down

0 comments on commit 78728b9

Please sign in to comment.