2020-08-10 14:41:34 +02:00
|
|
|
import * as loader from "tc-loader";
|
|
|
|
import {Stage} from "tc-loader";
|
|
|
|
import {setExternalModalControllerFactory} from "tc-shared/ui/react-elements/external-modal";
|
|
|
|
import {ExternalModalController} from "tc-backend/web/ExternalModalFactory";
|
|
|
|
|
|
|
|
loader.register_task(Stage.JAVASCRIPT_INITIALIZING, {
|
|
|
|
priority: 50,
|
|
|
|
name: "external modal controller factory setup",
|
|
|
|
function: async () => {
|
2021-01-22 16:50:55 +01:00
|
|
|
setExternalModalControllerFactory((modalType, constructorArguments, options) => new ExternalModalController(modalType, constructorArguments, options));
|
2020-08-10 14:41:34 +02:00
|
|
|
}
|
|
|
|
});
|