mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	
							parent
							
								
									8f69edeb33
								
							
						
					
					
						commit
						d945e77443
					
				| @ -167,14 +167,13 @@ export default function ExportDialog({ | |||||||
|         > |         > | ||||||
|           {EXPORT_OPTIONS.map((opt) => { |           {EXPORT_OPTIONS.map((opt) => { | ||||||
|             return ( |             return ( | ||||||
|               <div className="flex items-center gap-2"> |               <div key={opt} className="flex items-center gap-2"> | ||||||
|                 <RadioGroupItem |                 <RadioGroupItem | ||||||
|                   className={ |                   className={ | ||||||
|                     opt == selectedOption |                     opt == selectedOption | ||||||
|                       ? "from-selected/50 to-selected/90 text-selected bg-selected" |                       ? "from-selected/50 to-selected/90 text-selected bg-selected" | ||||||
|                       : "from-secondary/50 to-secondary/90 text-secondary bg-secondary" |                       : "from-secondary/50 to-secondary/90 text-secondary bg-secondary" | ||||||
|                   } |                   } | ||||||
|                   key={opt} |  | ||||||
|                   id={opt} |                   id={opt} | ||||||
|                   value={opt} |                   value={opt} | ||||||
|                 /> |                 /> | ||||||
|  | |||||||
| @ -69,7 +69,20 @@ export default function Events() { | |||||||
|   }, [last24Hours, reviewSearchParams]); |   }, [last24Hours, reviewSearchParams]); | ||||||
| 
 | 
 | ||||||
|   // we want to update the items whenever the severity changes
 |   // we want to update the items whenever the severity changes
 | ||||||
|   useEffect(() => setBeforeTs(Date.now() / 1000), [severity]); |   useEffect(() => { | ||||||
|  |     if (recording) { | ||||||
|  |       return; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     const now = Date.now() / 1000; | ||||||
|  | 
 | ||||||
|  |     if (now - beforeTs > 60) { | ||||||
|  |       setBeforeTs(now); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     // only refresh when severity changes
 | ||||||
|  |     // eslint-disable-next-line react-hooks/exhaustive-deps
 | ||||||
|  |   }, [severity]); | ||||||
| 
 | 
 | ||||||
|   const reviewSegmentFetcher = useCallback((key: Array<string> | string) => { |   const reviewSegmentFetcher = useCallback((key: Array<string> | string) => { | ||||||
|     const [path, params] = Array.isArray(key) ? key : [key, undefined]; |     const [path, params] = Array.isArray(key) ? key : [key, undefined]; | ||||||
|  | |||||||
| @ -151,6 +151,7 @@ export default function SubmitPlus() { | |||||||
| 
 | 
 | ||||||
|             return ( |             return ( | ||||||
|               <div |               <div | ||||||
|  |                 key={event.id} | ||||||
|                 className="w-full rounded-2xl aspect-video flex justify-center items-center bg-black cursor-pointer" |                 className="w-full rounded-2xl aspect-video flex justify-center items-center bg-black cursor-pointer" | ||||||
|                 onClick={() => setUpload(event)} |                 onClick={() => setUpload(event)} | ||||||
|               > |               > | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user