mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:37:11 -04:00 
			
		
		
		
	refactor: asset description modal (#23168)
This commit is contained in:
		
							parent
							
								
									351c0d2a4d
								
							
						
					
					
						commit
						e196cac6f4
					
				| @ -1,14 +1,13 @@ | ||||
| <script lang="ts"> | ||||
|   import { ConfirmModal, Input } from '@immich/ui'; | ||||
|   import { ConfirmModal, Field, Textarea } from '@immich/ui'; | ||||
|   import { mdiText } from '@mdi/js'; | ||||
|   import { t } from 'svelte-i18n'; | ||||
| 
 | ||||
|   interface Props { | ||||
|   type Props = { | ||||
|     onClose: (description?: string) => void; | ||||
|   } | ||||
|   }; | ||||
| 
 | ||||
|   let { onClose }: Props = $props(); | ||||
| 
 | ||||
|   let description = $state(''); | ||||
| </script> | ||||
| 
 | ||||
| @ -20,11 +19,8 @@ | ||||
|   onClose={(confirmed) => (confirmed ? onClose(description) : onClose())} | ||||
| > | ||||
|   {#snippet promptSnippet()} | ||||
|     <div class="flex flex-col text-start gap-2"> | ||||
|       <div class="flex flex-col"> | ||||
|         <label for="description">{$t('description')}</label> | ||||
|         <Input class="immich-form-input" id="description" bind:value={description} /> | ||||
|       </div> | ||||
|     </div> | ||||
|     <Field label={$t('description')}> | ||||
|       <Textarea bind:value={description} grow /> | ||||
|     </Field> | ||||
|   {/snippet} | ||||
| </ConfirmModal> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user