Added software update menu tag.

This commit is contained in:
Tom Butcher 2026-06-21 19:14:10 +01:00
parent 8a0bc22124
commit 8109b8dce2

View File

@ -44,6 +44,8 @@ import {
getSidebarMenuSections
} from '../../../database/Sidebars'
import { useAppUpdateContext } from '../context/AppUpdateContext'
const { Text } = Typography
const DashboardNavigation = () => {
@ -64,7 +66,7 @@ const DashboardNavigation = () => {
const isMobile = useMediaQuery({ maxWidth: 768 })
const { platform, isElectron, isFullScreen, setSidebarViewMenu } =
useContext(ElectronContext)
const { availableUpdate, checkForUpdates } = useAppUpdateContext()
const mainMenuItems = useMemo(
() => [
{
@ -314,6 +316,16 @@ const DashboardNavigation = () => {
</Popover>
</Space>
) : null}
{isElectron && availableUpdate ? (
<Tag
icon={<CloudIcon />}
style={{ cursor: 'pointer', margin: '2px 0 0 0' }}
color='cyan'
onClick={() => checkForUpdates()}
>
Update Available
</Tag>
) : null}
</Flex>
{isOtherApp ? <DashboardWindowButtons /> : null}
</Flex>