This is an automated email from the ASF dual-hosted git repository. hugh pushed a commit to branch hugh/change-ds-bugfixes in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit f5040a212200a28449154300c54e4c22865cefd0 Author: hughhhh <[email protected]> AuthorDate: Mon Dec 21 17:54:31 2020 -0500 add divider --- .../src/datasource/ChangeDatasourceModal.tsx | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/superset-frontend/src/datasource/ChangeDatasourceModal.tsx b/superset-frontend/src/datasource/ChangeDatasourceModal.tsx index 4480fc2..3ee3754 100644 --- a/superset-frontend/src/datasource/ChangeDatasourceModal.tsx +++ b/superset-frontend/src/datasource/ChangeDatasourceModal.tsx @@ -211,7 +211,24 @@ const ChangeDatasourceModal: FunctionComponent<ChangeDatasourceModalProps> = ({ onHide={onHide} responsive title={t('Change Dataset')} - hideFooter + footer={ + <> + {confirmChange && ( + <ConfirmModalStyled> + <div className="btn-container"> + <Button onClick={handlerCancelConfirm}>Cancel</Button> + <Button + className="proceed-btn" + buttonStyle="primary" + onClick={handleChangeConfirm} + > + Proceed + </Button> + </div> + </ConfirmModalStyled> + )} + </> + } > <> {!confirmChange && ( @@ -242,23 +259,6 @@ const ChangeDatasourceModal: FunctionComponent<ChangeDatasourceModalProps> = ({ )} </> )} - {confirmChange && ( - <ConfirmModalStyled> - <div className="confirm-modal-container"> - {CONFIRM_WARNING_MESSAGE} - <div className="btn-container"> - <Button onClick={handlerCancelConfirm}>Cancel</Button> - <Button - className="proceed-btn" - buttonStyle="primary" - onClick={handleChangeConfirm} - > - Proceed - </Button> - </div> - </div> - </ConfirmModalStyled> - )} </> </StyledModal> );
