mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Propagate success flag.
This commit is contained in:
parent
e6e3bc2655
commit
819428651e
@ -27,8 +27,8 @@ type ActionDialogProps = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const ActionDispatcher = ({ mapsId, action, onClose, fromEditor }: ActionDialogProps): React.ReactElement => {
|
const ActionDispatcher = ({ mapsId, action, onClose, fromEditor }: ActionDialogProps): React.ReactElement => {
|
||||||
const handleOnClose = (): void => {
|
const handleOnClose = (success?: boolean): void => {
|
||||||
onClose();
|
onClose(success);
|
||||||
};
|
};
|
||||||
|
|
||||||
switch (action) {
|
switch (action) {
|
||||||
|
Loading…
Reference in New Issue
Block a user