mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	further UI tweaks
This commit is contained in:
		
							parent
							
								
									53d03934cf
								
							
						
					
					
						commit
						2c15ce27f5
					
				| @ -548,7 +548,7 @@ | ||||
|       "loading": "Loading model information...", | ||||
|       "error": "Failed to load model information", | ||||
|       "availableModels": "Available Models", | ||||
|       "modelSelect": "Your available models on Frigate+ can be selected here. Note that only models compatible with your current detector configuration are shown." | ||||
|       "modelSelect": "Your available models on Frigate+ can be selected here. Note that only models compatible with your current detector configuration can be selected." | ||||
|     }, | ||||
|     "toast": { | ||||
|       "success": "Frigate+ settings have been saved. Restart Frigate to apply changes.", | ||||
|  | ||||
| @ -25,7 +25,10 @@ import { | ||||
| 
 | ||||
| type FrigatePlusModel = { | ||||
|   id: string; | ||||
|   type: string; | ||||
|   supportedDetectors: string[]; | ||||
|   trainDate: string; | ||||
|   baseModel: string; | ||||
| }; | ||||
| 
 | ||||
| type FrigatePlusSettings = { | ||||
| @ -305,7 +308,10 @@ export default function FrigatePlusSettingsView({ | ||||
|                             } | ||||
|                           > | ||||
|                             <SelectTrigger> | ||||
|                               {frigatePlusSettings.model.id} | ||||
|                               {new Date( | ||||
|                                 config.model.plus.trainDate, | ||||
|                               ).toLocaleString()}{" "} | ||||
|                               ({config.model.plus.baseModel}) | ||||
|                             </SelectTrigger> | ||||
|                             <SelectContent> | ||||
|                               <SelectGroup> | ||||
| @ -314,9 +320,17 @@ export default function FrigatePlusSettingsView({ | ||||
|                                     key={model.id} | ||||
|                                     className="cursor-pointer" | ||||
|                                     value={model.id} | ||||
|                                     disabled={ | ||||
|                                       model.type != config.model.model_type || | ||||
|                                       !model.supportedDetectors.includes( | ||||
|                                         Object.values(config.detectors)[0].type, | ||||
|                                       ) | ||||
|                                     } | ||||
|                                   > | ||||
|                                     {new Date(model.trainDate).toLocaleString()} | ||||
|                                     <div className="text-muted-foreground"> | ||||
|                                     {new Date(model.trainDate).toLocaleString()}{" "} | ||||
|                                     ({model.baseModel}) ( | ||||
|                                     {model.supportedDetectors.join(", ")}) | ||||
|                                     <div className="text-xs text-muted-foreground"> | ||||
|                                       {model.id} | ||||
|                                     </div> | ||||
|                                   </SelectItem> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user