better handling for settings ui errors

This commit is contained in:
Vendicated 2022-11-15 17:29:31 +01:00
parent eabbf7d9bd
commit b30508aef8
No known key found for this signature in database
GPG key ID: EC781ADFB93EFFA3
5 changed files with 60 additions and 4 deletions

View file

@ -31,6 +31,7 @@ import { Alerts, Button, Forms, Margins, Parser, React, Select, Switch, Text, Te
import ErrorBoundary from "../ErrorBoundary";
import { ErrorCard } from "../ErrorCard";
import { Flex } from "../Flex";
import { handleComponentFailed } from "../handleComponentFailed";
import PluginModal from "./PluginModal";
import * as styles from "./styles";
@ -312,6 +313,9 @@ export default ErrorBoundary.wrap(function Settings() {
</div>
</Forms.FormSection >
);
}, {
message: "Failed to render the Plugin Settings. If this persists, try using the installer to reinstall!",
onError: handleComponentFailed,
});
function makeDependencyList(deps: string[]) {