diff --git a/src/daemon/mod.rs b/src/daemon/mod.rs index 819d644079ab615aa67368d74ec545b616a19bc0..d2b1c21a7fec9f23965ed6a863e9123ad2f41c5d 100644 --- a/src/daemon/mod.rs +++ b/src/daemon/mod.rs @@ -304,7 +304,7 @@ pub fn reset() { match largest { Some(id) => runner.set_id(Id::from(str!(id.to_string()))), - None => println!("{} Cannot reset index, no ID found", *helpers::FAIL), + None => runner.set_id(Id::new(0)), } println!("{} PMC Successfully reset (index={})", *helpers::SUCCESS, runner.id); diff --git a/src/main.rs b/src/main.rs index f3bdd00ab4fc482a628711db1adb555b3259e392..06d1b3a634b6dd782d582e97272da85f1547e48e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,7 +68,7 @@ enum Server { format: String, }, /// Remove server - #[command(visible_alias = "rm")] + #[command(visible_alias = "rm", visible_alias = "delete")] Remove { /// Server name name: String, diff --git a/src/webui/src/components/react/index.tsx b/src/webui/src/components/react/index.tsx index eb0c81be0d969f31932be8231fd4622fe0abf5e6..65ed5b9f76e69fff1063604794562696fadb4cbc 100644 --- a/src/webui/src/components/react/index.tsx +++ b/src/webui/src/components/react/index.tsx @@ -31,7 +31,9 @@ const Index = (props: { base: string }) => { const isRunning = (status: string): bool => (status == 'stopped' ? false : status == 'crashed' ? false : true); const action = (id: number, name: string) => api.post(`${props.base}/process/${id}/action`, { json: { method: name } }).then(() => fetch()); - useEffect(() => fetch(), []); + useEffect(() => { + fetch(); + }, []); return (