commit
0a32abdc36
@ -48,6 +48,7 @@ import {
|
|||||||
onSDKWarning,
|
onSDKWarning,
|
||||||
onSDKError,
|
onSDKError,
|
||||||
onSDKRequestRename,
|
onSDKRequestRename,
|
||||||
|
onOutdatedVersion,
|
||||||
} from "@/utils/events";
|
} from "@/utils/events";
|
||||||
import useInit from "@/hooks/useInit";
|
import useInit from "@/hooks/useInit";
|
||||||
import useEditorEvents from "@/hooks/useEditorEvents";
|
import useEditorEvents from "@/hooks/useEditorEvents";
|
||||||
@ -231,6 +232,7 @@ const Editor = ({
|
|||||||
onDocumentStateChange,
|
onDocumentStateChange,
|
||||||
onMetaChange,
|
onMetaChange,
|
||||||
onMakeActionLink,
|
onMakeActionLink,
|
||||||
|
onOutdatedVersion,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (successAuth) {
|
if (successAuth) {
|
||||||
|
@ -119,3 +119,5 @@ export const onSDKRequestRename = async (
|
|||||||
const title = (event as TRenameEvent).data;
|
const title = (event as TRenameEvent).data;
|
||||||
await updateFile(id, title);
|
await updateFile(id, title);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const onOutdatedVersion = () => window.location.reload();
|
||||||
|
Loading…
Reference in New Issue
Block a user