comment last week in Overview and detailed battery view of sodistore home

This commit is contained in:
Yinyin Liu 2026-03-26 10:15:25 +01:00
parent c70cacf179
commit dfa2f89295
3 changed files with 6 additions and 4 deletions

View File

@ -240,12 +240,13 @@ function BatteryViewSodioHome(props: BatteryViewSodioHomeProps) {
align="center"
sx={{ fontWeight: 'bold' }}
>
<Link
{/* Detailed battery view commented out */}
{/*<Link
style={{ color: 'black' }}
to={routes.detailed_view + BatteryId}
>
>*/}
{'Battery Cluster ' + BatteryId}
</Link>
{/*</Link>*/}
</TableCell>
<TableCell
sx={{

View File

@ -566,7 +566,7 @@ function Overview(props: OverviewProps) {
>
<FormattedMessage id="24_hours" defaultMessage="24-hours" />
</Button>
{props.device !== 3 && (
{props.device !== 3 && props.product !== 2 && (
<Button
variant="contained"
onClick={handleWeekData}

View File

@ -605,6 +605,7 @@ function SodioHomeInstallation(props: singleInstallationProps) {
s3Credentials={s3Credentials}
id={props.current_installation.id}
device={props.current_installation.device}
product={props.current_installation.product}
connected={connected}
loading={loading}
/>