[Update] Add update software UI(modal).
This commit is contained in:
12
src-ui/logics/common/useUpdateSoftware.js
Normal file
12
src-ui/logics/common/useUpdateSoftware.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import { useStdoutToPython } from "@logics/useStdoutToPython";
|
||||
|
||||
export const useUpdateSoftware = () => {
|
||||
const { asyncStdoutToPython } = useStdoutToPython();
|
||||
const updateSoftware = () => {
|
||||
asyncStdoutToPython("/run/update_software");
|
||||
};
|
||||
|
||||
return {
|
||||
updateSoftware,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user