File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
assets/js/Components/Admin Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -69,15 +69,15 @@ export default function AdminFilters({
6969 < select
7070 id = "inputAccount"
7171 disabled = { loadingContent }
72+ value = { filters . accountId . toString ( ) }
7273 onChange = { ( e ) => handleAccountSelect ( e . target . value ) }
7374 >
7475 { accountOptions . map ( ( acct , i ) => {
7576 return (
7677 < option
7778 key = { `acct-${ i } ` }
7879 value = { acct . id }
79- selected = { filters . accountId . toString ( ) === acct . id . toString ( ) }
80- >
80+ >
8181 { acct . name }
8282 </ option >
8383 )
@@ -93,15 +93,15 @@ export default function AdminFilters({
9393 < select
9494 id = "inputTerm"
9595 disabled = { loadingContent }
96+ value = { filters . accountId . toString ( ) }
9697 onChange = { ( e ) => handleTermSelect ( e . target . value ) }
9798 >
9899 { termOptions . map ( ( term , i ) => {
99100 return (
100101 < option
101102 key = { `term-${ i } ` }
102103 value = { term . id }
103- selected = { filters . termId . toString ( ) === term . id . toString ( ) }
104- >
104+ >
105105 { term . name }
106106 </ option >
107107 )
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export default function CoursePage({
8484 action : < div className = "flex-row gap-1" >
8585 < button key = { `reportButton${ course . id } ` }
8686 onClick = { ( ) => { ! course . loading && ! isAnyScanning && hasReport && handleReportClick ( course ) } }
87- textAlign = "center"
87+ textalign = "center"
8888 className = { `btn btn-text btn-icon-only ${ ( ( course . loading || isAnyScanning ) || ! hasReport ) ? 'btn-disabled' : '' } ` }
8989 disabled = { ( course . loading || isAnyScanning ) || ! hasReport }
9090 title = { hasReport ? t ( 'report.button.view_report' ) : t ( 'report.button.no_report' ) }
@@ -94,7 +94,7 @@ export default function CoursePage({
9494 </ button >
9595 < button key = { `scanButton${ course . id } ` }
9696 onClick = { ( ) => { ! course . loading && ! isAnyScanning && handleScanClick ( course ) } }
97- textAlign = "center"
97+ textalign = "center"
9898 className = { `btn btn-text btn-icon-only ${ ( course . loading || isAnyScanning ) ? 'btn-disabled' : '' } ` }
9999 disabled = { course . loading || isAnyScanning }
100100 title = { t ( 'report.button.scan' ) }
You can’t perform that action at this time.
0 commit comments