|
|
|
@ -23,7 +23,7 @@ import ErrorBoundary from "@components/ErrorBoundary";
|
|
|
|
|
import { Flex } from "@components/Flex";
|
|
|
|
|
import { proxyLazy } from "@utils/lazy";
|
|
|
|
|
import { Margins } from "@utils/margins";
|
|
|
|
|
import { classes } from "@utils/misc";
|
|
|
|
|
import { classes, isObjectEmpty } from "@utils/misc";
|
|
|
|
|
import { ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalProps, ModalRoot, ModalSize } from "@utils/modal";
|
|
|
|
|
import { LazyComponent } from "@utils/react";
|
|
|
|
|
import { OptionType, Plugin } from "@utils/types";
|
|
|
|
@ -89,7 +89,7 @@ export default function PluginModal({ plugin, onRestartNeeded, onClose, transiti
|
|
|
|
|
|
|
|
|
|
const canSubmit = () => Object.values(errors).every(e => !e);
|
|
|
|
|
|
|
|
|
|
const hasSettings = Boolean(pluginSettings && plugin.options);
|
|
|
|
|
const hasSettings = Boolean(pluginSettings && plugin.options && !isObjectEmpty(plugin.options));
|
|
|
|
|
|
|
|
|
|
React.useEffect(() => {
|
|
|
|
|
enableStyle(hideBotTagStyle);
|
|
|
|
|