mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-30 18:35:00 -04:00 
			
		
		
		
	chore(web): remove CircleIconButton slot (#9131)
This commit is contained in:
		
							parent
							
								
									2648032163
								
							
						
					
					
						commit
						13e093b3c2
					
				| @ -38,5 +38,4 @@ | ||||
|   on:click | ||||
| > | ||||
|   <Icon path={icon} {size} ariaLabel={title} color="currentColor" /> | ||||
|   <slot /> | ||||
| </button> | ||||
|  | ||||
| @ -459,27 +459,22 @@ | ||||
| 
 | ||||
|               {#if isOwned} | ||||
|                 <div use:clickOutside on:outclick={() => (viewMode = ViewMode.VIEW)}> | ||||
|                   <CircleIconButton title="Album options" on:click={handleOpenAlbumOptions} icon={mdiDotsVertical}> | ||||
|                     {#if viewMode === ViewMode.ALBUM_OPTIONS} | ||||
|                       <ContextMenu {...contextMenuPosition}> | ||||
|                         <MenuOption | ||||
|                           icon={mdiImageOutline} | ||||
|                           text="Select album cover" | ||||
|                           on:click={() => (viewMode = ViewMode.SELECT_THUMBNAIL)} | ||||
|                         /> | ||||
|                         <MenuOption | ||||
|                           icon={mdiCogOutline} | ||||
|                           text="Options" | ||||
|                           on:click={() => (viewMode = ViewMode.OPTIONS)} | ||||
|                         /> | ||||
|                         <MenuOption | ||||
|                           icon={mdiDeleteOutline} | ||||
|                           text="Delete album" | ||||
|                           on:click={() => (viewMode = ViewMode.CONFIRM_DELETE)} | ||||
|                         /> | ||||
|                       </ContextMenu> | ||||
|                     {/if} | ||||
|                   </CircleIconButton> | ||||
|                   <CircleIconButton title="Album options" on:click={handleOpenAlbumOptions} icon={mdiDotsVertical} /> | ||||
|                   {#if viewMode === ViewMode.ALBUM_OPTIONS} | ||||
|                     <ContextMenu {...contextMenuPosition}> | ||||
|                       <MenuOption | ||||
|                         icon={mdiImageOutline} | ||||
|                         text="Select album cover" | ||||
|                         on:click={() => (viewMode = ViewMode.SELECT_THUMBNAIL)} | ||||
|                       /> | ||||
|                       <MenuOption icon={mdiCogOutline} text="Options" on:click={() => (viewMode = ViewMode.OPTIONS)} /> | ||||
|                       <MenuOption | ||||
|                         icon={mdiDeleteOutline} | ||||
|                         text="Delete album" | ||||
|                         on:click={() => (viewMode = ViewMode.CONFIRM_DELETE)} | ||||
|                       /> | ||||
|                     </ContextMenu> | ||||
|                   {/if} | ||||
|                 </div> | ||||
|               {/if} | ||||
|             {/if} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user