mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 16:20:04 +00:00
Verify plugin config before starting plugin
Fix issue with SLF4J in plugins
This commit is contained in:
@@ -18,11 +18,7 @@ export function PluginManagementCard({plugin, updatePlugin}: {
|
||||
if (response === undefined) return;
|
||||
setConfigValid(response);
|
||||
});
|
||||
}, []);
|
||||
|
||||
function iconColor(state: PluginState | undefined): "white" | "default" {
|
||||
return "default";
|
||||
}
|
||||
}, [pluginDetailsModal.isOpen]);
|
||||
|
||||
function borderColor(state: PluginState | undefined): "success" | "warning" | "danger" | "default" {
|
||||
if (isDisabled(state)) return "warning";
|
||||
@@ -37,7 +33,7 @@ export function PluginManagementCard({plugin, updatePlugin}: {
|
||||
return "success";
|
||||
case PluginState.DISABLED:
|
||||
return "warning";
|
||||
case PluginState.STOPPED:
|
||||
case PluginState.FAILED:
|
||||
return "danger";
|
||||
default:
|
||||
return "default";
|
||||
@@ -101,6 +97,7 @@ export function PluginManagementCard({plugin, updatePlugin}: {
|
||||
<PluginDetailsModal plugin={plugin}
|
||||
isOpen={pluginDetailsModal.isOpen}
|
||||
onOpenChange={pluginDetailsModal.onOpenChange}
|
||||
updatePlugin={updatePlugin}
|
||||
/>
|
||||
</>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user