Skip to content

Commit

Permalink
🐛 Allow save as draft on first page if answers exist (#1538)
Browse files Browse the repository at this point in the history
Resolves https://issues.redhat.com/browse/MTA-1676 
- QE raised the point that we should be able to save as draft on the
first page of the wizard if the user has navigated back after selecting
answers.

Signed-off-by: ibolton336 <ibolton@redhat.com>
  • Loading branch information
ibolton336 authored Nov 15, 2023
1 parent 2500fbc commit fbabc56
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,16 @@ export const CustomWizardFooter: React.FC<CustomWizardFooterProps> = ({
>
{t("actions.cancel")}
</Button>
{!isFirstStep && (
{
<Button
variant="link"
onClick={onSaveAsDraft}
isDisabled={isFormInvalid || isFirstStep || isSaveAsDraftDisabled}
isDisabled={isFormInvalid || isSaveAsDraftDisabled}
cy-data="save-as-draft"
>
{t("actions.saveAsDraft")}
</Button>
)}
}
</>
</WizardFooterWrapper>
</>
Expand Down

0 comments on commit fbabc56

Please sign in to comment.