Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

hide indexing status from web

Abhinav7a1bc9619f9f
diff --git a/apps/photos/src/components/Sidebar/AdvancedSettings.tsx b/apps/photos/src/components/Sidebar/AdvancedSettings.tsx
index 3198591792..862033de83 100644
--- a/apps/photos/src/components/Sidebar/AdvancedSettings.tsx
+++ b/apps/photos/src/components/Sidebar/AdvancedSettings.tsx
@@ -110,31 +110,37 @@ export default function AdvancedSettings({ open, onClose, onRootClose }) {
/>
</Box>
- <Box>
- <MenuSectionTitle title={t('STATUS')} />
- <Stack py={'12px'} px={'12px'} spacing={'24px'}>
- <VerticallyCenteredFlex
- justifyContent="space-between"
- alignItems={'center'}>
- <Typography>
- {t('INDEXED_ITEMS')}
- </Typography>
- <Typography>
- {formatNumber(indexingStatus.indexed)}
- </Typography>
- </VerticallyCenteredFlex>
- <VerticallyCenteredFlex
- justifyContent="space-between"
- alignItems={'center'}>
- <Typography>
- {t('PENDING_ITEMS')}
- </Typography>
- <Typography>
- {formatNumber(indexingStatus.pending)}
- </Typography>
- </VerticallyCenteredFlex>
- </Stack>
- </Box>
+ {isElectron() && (
+ <Box>
+ <MenuSectionTitle title={t('STATUS')} />
+ <Stack py={'12px'} px={'12px'} spacing={'24px'}>
+ <VerticallyCenteredFlex
+ justifyContent="space-between"
+ alignItems={'center'}>
+ <Typography>
+ {t('INDEXED_ITEMS')}
+ </Typography>
+ <Typography>
+ {formatNumber(
+ indexingStatus.indexed
+ )}
+ </Typography>
+ </VerticallyCenteredFlex>
+ <VerticallyCenteredFlex
+ justifyContent="space-between"
+ alignItems={'center'}>
+ <Typography>
+ {t('PENDING_ITEMS')}
+ </Typography>
+ <Typography>
+ {formatNumber(
+ indexingStatus.pending
+ )}
+ </Typography>
+ </VerticallyCenteredFlex>
+ </Stack>
+ </Box>
+ )}
</Stack>
</Box>
</Stack>