Skip to content

Commit

Permalink
Merge pull request #8346 from coronasafe/develop
Browse files Browse the repository at this point in the history
Merge Develop to Staging 24.34.0 | Patch
  • Loading branch information
khavinshankar authored Aug 19, 2024
2 parents 8aab3aa + d5805fa commit 1bb1caa
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ export const ConsultationFeedTab = (props: ConsultationTabProps) => {
return <span>No bed/asset linked allocated</span>;
}

const cannotSaveToPreset = !hasMoved || !preset?.id;

return (
<>
<ConfirmDialog
Expand Down Expand Up @@ -231,13 +233,13 @@ export const ConsultationFeedTab = (props: ConsultationTabProps) => {
) : (
<ButtonV2
size="small"
variant={hasMoved ? "secondary" : "secondary"}
disabled={!hasMoved}
variant="secondary"
disabled={cannotSaveToPreset}
border
ghost={!hasMoved}
shadow={hasMoved}
ghost={cannotSaveToPreset}
shadow={!cannotSaveToPreset}
tooltip={
hasMoved
!cannotSaveToPreset
? "Save current position to selected preset"
: "Change camera position to update preset"
}
Expand Down

0 comments on commit 1bb1caa

Please sign in to comment.