Skip to content

Commit

Permalink
give indicator that the checkbox reflects config value
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed May 25, 2023
1 parent 28b3f42 commit c3717c0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 9 additions & 1 deletion webview/src/setup/components/studio/Settings.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import { useSelector } from 'react-redux'
import { VSCodeCheckbox } from '@vscode/webview-ui-toolkit/react'
import styles from './styles.module.scss'
import { saveStudioToken, removeStudioToken } from '../messages'
import { EmptyState } from '../../../shared/components/emptyState/EmptyState'
import { Button } from '../../../shared/components/button/Button'
Expand Down Expand Up @@ -30,9 +31,16 @@ export const Settings: React.FC<{
onClick={() => setShareLiveToStudio(!shareLiveToStudio)}
checked={shareLiveToStudio}
>
Share New Experiments Live
Share New Experiments Live*
</VSCodeCheckbox>
</p>
<p className={styles.smallFont}>
*The checkbox reflects the{' '}
<a href="https://dvc.org/doc/user-guide/project-structure/configuration#studio">
studio.offline
</a>{' '}
config value.
</p>
<Button
appearance="primary"
isNested={false}
Expand Down
3 changes: 3 additions & 0 deletions webview/src/setup/components/studio/styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.smallFont {
font-size: 0.6rem;
}

0 comments on commit c3717c0

Please sign in to comment.