diff --git a/src/components/Board/Board.component.js b/src/components/Board/Board.component.js index 2306af455..9f048e4e8 100644 --- a/src/components/Board/Board.component.js +++ b/src/components/Board/Board.component.js @@ -424,13 +424,13 @@ export class Board extends Component { active={ navigationSettings.caBackButtonActive && !isSelecting && - !isSaving && + (!isSaving || isNavigationButtonsOnTheSide) && !this.props.scannerSettings.active } navHistory={this.props.navHistory} previousBoard={onRequestPreviousBoard} toRootBoard={onRequestToRootBoard} - isLocked={this.props.isLocked} + isSaving={isSaving} isNavigationButtonsOnTheSide={isNavigationButtonsOnTheSide} /> )} @@ -503,12 +503,12 @@ export class Board extends Component { { if (!active) { @@ -18,15 +18,15 @@ const NavigationButtons = ({ } const classPreviousBoardButton = isNavigationButtonsOnTheSide ? `SideNavigationButton SideButtonPreviousBoard ${ - navHistory.length > 2 ? '' : 'disable' + !isSaving && navHistory.length > 1 ? '' : 'disable' }` - : `NavigationButton left`; + : `NavigationButton right`; const classToRootBoardButton = isNavigationButtonsOnTheSide ? `SideNavigationButton SideButtonToRootBoard ${ - navHistory.length > 1 ? '' : 'disable' + !isSaving && navHistory.length > 2 ? '' : 'disable' }` - : 'NavigationButton right'; + : 'NavigationButton left'; return ( @@ -36,14 +36,14 @@ const NavigationButtons = ({ } > {(navHistory.length > 2 || isNavigationButtonsOnTheSide) && ( -
+
)} {(navHistory.length > 1 || isNavigationButtonsOnTheSide) && ( -
+
@@ -58,7 +58,7 @@ NavigationButtons.props = { navHistory: PropTypes.arrayOf(PropTypes.string), previousBoard: PropTypes.func, toRootBoard: PropTypes.func, - isLocked: PropTypes.bool, + isSaving: PropTypes.bool, isNavigationButtonsOnTheSide: PropTypes.bool }; diff --git a/src/components/NavigationButtons/NavigationButtons.css b/src/components/NavigationButtons/NavigationButtons.css index e4629e1dc..0e749a75c 100644 --- a/src/components/NavigationButtons/NavigationButtons.css +++ b/src/components/NavigationButtons/NavigationButtons.css @@ -78,12 +78,12 @@ } .SideButtonScrollUp, -.SideButtonPreviousBoard { +.SideButtonToRootBoard { margin-bottom: 2px; } .SideButtonScrollDown, -.SideButtonToRootBoard { +.SideButtonPreviousBoard { margin-top: 2px; } diff --git a/src/components/ScrollButtons/ScrollButtons.js b/src/components/ScrollButtons/ScrollButtons.js index 88dfc8cd4..f9479ced2 100644 --- a/src/components/ScrollButtons/ScrollButtons.js +++ b/src/components/ScrollButtons/ScrollButtons.js @@ -73,13 +73,13 @@ const ScrollButtons = props => { const classScrollUp = props.isNavigationButtonsOnTheSide ? `SideNavigationButton SideButtonScrollUp ${ - !props.isScroll || isScrollTop ? 'disable' : '' + !props.isScroll || props.isSaving || isScrollTop ? 'disable' : '' }` : `NavigationButton top`; const classScrollDown = props.isNavigationButtonsOnTheSide ? `SideNavigationButton SideButtonScrollDown ${ - !props.isScroll || isScrollDown ? 'disable' : '' + !props.isScroll || props.isSaving || isScrollDown ? 'disable' : '' }` : 'NavigationButton bottom'; @@ -113,7 +113,7 @@ const ScrollButtons = props => { ScrollButtons.props = { active: PropTypes.bool, - isLocked: PropTypes.bool, + isSaving: PropTypes.bool, boardContainer: PropTypes.object, totalRows: PropTypes.number, boardId: PropTypes.number,