[Update] Add update software UI(modal).
This commit is contained in:
@@ -5,4 +5,5 @@ export { useIsOpenedConfigPage } from "./useIsOpenedConfigPage";
|
||||
export { useIsSoftwareUpdateAvailable } from "./useIsSoftwareUpdateAvailable";
|
||||
export { useOpenFolder } from "./useOpenFolder";
|
||||
export { useMessage } from "./useMessage";
|
||||
export { useUpdateSoftware } from "./useUpdateSoftware";
|
||||
export { useVolume } from "./useVolume";
|
||||
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