File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141}
4242
4343.heading-large {
44- @include heading-large () ;
44+ @include heading-large ;
4545}
4646
4747.heading-medium {
48- @include heading-medium () ;
48+ @include heading-medium ;
4949}
5050
5151.heading-small {
52- @include heading-small () ;
52+ @include heading-small ;
5353}
5454
5555.body-xlarge {
56- @include body-xlarge () ;
56+ @include body-xlarge ;
5757}
5858
5959.body-large {
60- @include body-large () ;
60+ @include body-large ;
6161}
6262
6363.body-base {
64- @include body-base () ;
64+ @include body-base ;
6565}
6666
6767.body-small {
68- @include body-small () ;
68+ @include body-small ;
6969}
7070
7171.body-overline {
72- @include body-overline () ;
72+ @include body-overline ;
7373}
7474
7575.body-overline-small {
76- @include body-overline-small () ;
76+ @include body-overline-small ;
7777}
7878
7979.body-overline-xsmall {
80- @include body-overline-xsmall () ;
80+ @include body-overline-xsmall ;
8181}
8282
8383.body-number {
84- @include body-number () ;
84+ @include body-number ;
8585}
8686
8787.body-number-small {
88- @include body-number-small () ;
88+ @include body-number-small ;
8989}
9090
9191.bubble-label {
92- @include bubble-label () ;
92+ @include bubble-label ;
9393}
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ export const ProcessNow = ({
1818 const canProcess = capture . userPermissions . includes (
1919 UserPermission . RunSingleImage
2020 )
21- const disabled = capture . hasJobInProgress || ! pipelineId || ! canProcess
21+ const disabled =
22+ isLoading || capture . hasJobInProgress || ! pipelineId || ! canProcess
2223 // @TODO : also check if pipeline is healthy/available
2324
2425 return (
Original file line number Diff line number Diff line change @@ -70,10 +70,11 @@ export const SessionDetailsPage = () => {
7070
7171 return (
7272 < >
73- < Helmet >
74- < meta name = "og:image" content = { session . exampleCaptures [ 0 ] ?. src } />
75- </ Helmet >
76-
73+ { session . exampleCaptures [ 0 ] ? (
74+ < Helmet >
75+ < meta name = "og:image" content = { session . exampleCaptures [ 0 ] ?. src } />
76+ </ Helmet >
77+ ) : null }
7778 < Content session = { session } />
7879 </ >
7980 )
Original file line number Diff line number Diff line change @@ -13,16 +13,18 @@ export const StarButton = ({
1313} ) => {
1414 const isStarred = capture . isStarred ?? false
1515 const { starCapture, isLoading } = useStarCapture ( capture . id , isStarred )
16- const tooltipContent = canStar
17- ? isStarred
18- ? translate ( STRING . STARRED )
19- : translate ( STRING . STAR )
20- : translate ( STRING . MESSAGE_PERMISSIONS_MISSING )
16+
17+ if ( ! canStar ) {
18+ return null
19+ }
2120
2221 return (
23- < BasicTooltip asChild content = { tooltipContent } >
22+ < BasicTooltip
23+ asChild
24+ content = { isStarred ? translate ( STRING . STARRED ) : translate ( STRING . STAR ) }
25+ >
2426 < Button
25- disabled = { ! canStar }
27+ disabled = { isLoading }
2628 aria-label = {
2729 isStarred ? translate ( STRING . STARRED ) : translate ( STRING . STAR )
2830 }
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export const ViewSettings = ({
4646 < div className = "grid gap-2" >
4747 < Checkbox
4848 id = "show-detections"
49- label = "Show detections"
49+ label = { translate ( STRING . SHOW_DETECTIONS ) }
5050 checked = { settings . showDetections }
5151 onCheckedChange = { ( ) =>
5252 onSettingsChange ( {
@@ -58,7 +58,7 @@ export const ViewSettings = ({
5858 < div className = "flex items-center gap-1" >
5959 < Checkbox
6060 id = "default-filters"
61- label = "Default filters"
61+ label = { translate ( STRING . NAV_ITEM_DEFAULT_FILTERS ) }
6262 checked = { settings . defaultFilters }
6363 onCheckedChange = { ( ) =>
6464 onSettingsChange ( {
Original file line number Diff line number Diff line change @@ -328,6 +328,7 @@ export enum STRING {
328328 SET_PASSWORD_DETAILS ,
329329 SET_PASSWORD ,
330330 SETTINGS ,
331+ SHOW_DETECTIONS ,
331332 SNAP_TO_DETECTIONS ,
332333 SORT_BY ,
333334 SORT_JOBS_ACTIVITY ,
@@ -720,6 +721,7 @@ const ENGLISH_STRINGS: { [key in STRING]: string } = {
720721 [ STRING . SET_PASSWORD_DETAILS ] : 'Please set a new password for your acccount.' ,
721722 [ STRING . SET_PASSWORD ] : 'Set password' ,
722723 [ STRING . SETTINGS ] : 'Settings' ,
724+ [ STRING . SHOW_DETECTIONS ] : 'Show detections' ,
723725 [ STRING . SNAP_TO_DETECTIONS ] : 'Snap to captures with detections' ,
724726 [ STRING . SORT_BY ] : 'Sort by' ,
725727 [ STRING . SORT_JOBS_ACTIVITY ] : 'Jobs activity' ,
You can’t perform that action at this time.
0 commit comments