File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/pages/dashboard/activities Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import IconButton from '~/components/material/IconButton'
1212import TopAppBar from '~/components/material/TopAppBar'
1313import DeviceLocation from '~/components/DeviceLocation'
1414import DeviceStatistics from '~/components/DeviceStatistics'
15- import { getDeviceName } from '~/utils/device'
15+ import { deviceIsOnline , getDeviceName } from '~/utils/device'
1616
1717import RouteList from '../components/RouteList'
1818import UploadQueue from '~/components/UploadQueue'
@@ -128,7 +128,16 @@ const DeviceActivity: VoidComponent<DeviceActivityProps> = (props) => {
128128 </ Suspense >
129129 < div class = "flex items-center justify-between p-4" >
130130 < Suspense fallback = { < div class = "h-[32px] skeleton-loader size-full" /> } >
131- { < div class = "text-xl font-bold" > { deviceName ( ) } </ div > }
131+ < div class = "inline-flex items-center gap-2" >
132+ < div
133+ class = { clsx (
134+ 'm-2 size-2 shrink-0 rounded-full' ,
135+ device . latest && deviceIsOnline ( device . latest ) ? 'bg-green-400' : 'bg-gray-400' ,
136+ ) }
137+ />
138+
139+ { < div class = "text-xl font-bold" > { deviceName ( ) } </ div > }
140+ </ div >
132141 </ Suspense >
133142 < div class = "flex gap-4" >
134143 < IconButton name = "camera" onClick = { ( ) => void takeSnapshot ( ) } />
You can’t perform that action at this time.
0 commit comments