mirror of https://github.com/jetkvm/kvm.git
Handle "errored" condition instead of "stopped"
This commit is contained in:
parent
5de7bc7afa
commit
2ffb463829
|
@ -10,7 +10,7 @@ function PluginListStatusIcon({ plugin }: { plugin: PluginStatus }) {
|
||||||
let classNames = "bg-slate-500 border-slate-600";
|
let classNames = "bg-slate-500 border-slate-600";
|
||||||
if (plugin.enabled && plugin.status === "running") {
|
if (plugin.enabled && plugin.status === "running") {
|
||||||
classNames = "bg-green-500 border-green-600";
|
classNames = "bg-green-500 border-green-600";
|
||||||
} else if (plugin.enabled && plugin.status === "stopped") {
|
} else if (plugin.enabled && plugin.status === "errored") {
|
||||||
classNames = "bg-red-500 border-red-600";
|
classNames = "bg-red-500 border-red-600";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -539,7 +539,8 @@ export interface PluginManifest {
|
||||||
|
|
||||||
export interface PluginStatus extends PluginManifest {
|
export interface PluginStatus extends PluginManifest {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
status: "stopped" | "running";
|
status: "stopped" | "running" | "errored";
|
||||||
|
error?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface PluginState {
|
interface PluginState {
|
||||||
|
|
Loading…
Reference in New Issue