Skip to content

Commit

Permalink
fix: Display VRM token name/id in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
mman committed Nov 28, 2024
1 parent 5b04cba commit 8b60d91
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/client/views/settings/VRM.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
CCol,
CRow,
CLink,
CInputGroup,
} from "@coreui/react"

import { useGetConfig, usePutConfig, useVRMLogin, useVRMLogout, useVRMRefresh } from "../../hooks/useAdminApi"
Expand Down Expand Up @@ -271,13 +272,17 @@ function VRM() {
<CCard>
<CCardHeader>
<CForm>
<CFormCheck
name="enabled"
id="enabled"
label="Connect to Venus Devices via VRM"
onChange={(event) => handleEnableChange(event)}
checked={temporaryConfig.vrm.enabled}
/>
<CInputGroup>
<CFormCheck
name="enabled"
id="enabled"
label="Connect to Venus Devices via VRM"
onChange={(event) => handleEnableChange(event)}
checked={temporaryConfig.vrm.enabled}
className="flex-grow-1"
/>
{temporaryConfig.vrm.hasToken && <div className="text-secondary">VRM Token: {vrmStatus.tokenInfo}</div>}
</CInputGroup>
</CForm>
</CCardHeader>
<CCardBody>
Expand Down

0 comments on commit 8b60d91

Please sign in to comment.