mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
Add 'Save As' feature for dashboards (#1669)
* Add 'Save As' feature for dashboards * Address code review comments
This commit is contained in:
committed by
Maxime Beauchemin
parent
e3a9b393c2
commit
84e8f741ae
@@ -7,6 +7,7 @@ const propTypes = {
|
||||
triggerNode: PropTypes.node.isRequired,
|
||||
modalTitle: PropTypes.node.isRequired,
|
||||
modalBody: PropTypes.node, // not required because it can be generated by beforeOpen
|
||||
modalFooter: PropTypes.node,
|
||||
beforeOpen: PropTypes.func,
|
||||
onExit: PropTypes.func,
|
||||
isButton: PropTypes.bool,
|
||||
@@ -57,6 +58,11 @@ export default class ModalTrigger extends React.Component {
|
||||
<Modal.Body>
|
||||
{this.props.modalBody}
|
||||
</Modal.Body>
|
||||
{this.props.modalFooter &&
|
||||
<Modal.Footer>
|
||||
{this.props.modalFooter}
|
||||
</Modal.Footer>
|
||||
}
|
||||
</Modal>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user