Skip to content

Commit

Permalink
Web: Files: Disabled the restore and download buttons while the comme…
Browse files Browse the repository at this point in the history
…nt is saved.
  • Loading branch information
TatianaLopaeva committed Nov 3, 2021
1 parent bea2e04 commit 6cb9b40
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,24 @@ const StyledVersionRow = styled(Row)`
right: 16px !important;
.expandButton {
${(props) =>
props.isSavingComment &&
`
touch-action: none;
pointer-events: none;
`}
svg {
path {
${(props) =>
props.isSavingComment &&
`
fill: #d0d5da;
`};
}
}
}
@media ${tablet} {
display: block;
position: absolute;
Expand All @@ -250,6 +268,16 @@ const StyledVersionRow = styled(Row)`
.row_content {
display: block;
.version_link-action {
${(props) =>
props.isSavingComment &&
`
color: #d0d5da;
touch-action: none;
pointer-events: none;
`}
}
}
.modal-dialog-aside-footer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ const VersionRow = (props) => {
contextOptions={contextOptions}
canEdit={canEdit}
isTabletView={isTabletView}
isSavingComment={isSavingComment}
>
<div className={`version-row_${index}`}>
<Box displayProp="flex">
Expand Down

0 comments on commit 6cb9b40

Please sign in to comment.