remove all values

This commit is contained in:
proddy
2024-10-22 12:13:44 +02:00
parent 4e8771ead2
commit 10cffd5c6f

View File

@@ -51,19 +51,19 @@ const Help = () => {
}
});
const { send: sendExportAllValues } = useRequest(
() => callAction({ action: 'export', param: 'allvalues' }),
{
immediate: false
}
)
.onSuccess((event) => {
saveFile(event.data, 'allvalues', '.txt');
toast.info(LL.DOWNLOAD_SUCCESSFUL());
})
.onError((error) => {
toast.error(error.message);
});
// const { send: sendExportAllValues } = useRequest(
// () => callAction({ action: 'export', param: 'allvalues' }),
// {
// immediate: false
// }
// )
// .onSuccess((event) => {
// saveFile(event.data, 'allvalues', '.txt');
// toast.info(LL.DOWNLOAD_SUCCESSFUL());
// })
// .onError((error) => {
// toast.error(error.message);
// });
const { send: sendAPI } = useRequest((data: APIcall) => API(data), {
immediate: false
@@ -162,11 +162,11 @@ const Help = () => {
color="primary"
onClick={() => sendAPI({ device: 'system', cmd: 'info', id: 0 })}
>
{LL.DOWNLOAD(1)} {LL.SUPPORT_INFORMATION(0)}
{LL.SUPPORT_INFORMATION(0)}
</Button>
</Box>
<Button
{/* <Button
sx={{ ml: 2 }}
startIcon={<DownloadIcon />}
variant="outlined"
@@ -174,7 +174,7 @@ const Help = () => {
onClick={() => sendExportAllValues()}
>
{LL.DOWNLOAD(1)}&nbsp;{LL.ALLVALUES()}
</Button>
</Button> */}
<Divider sx={{ mt: 4 }} />