File tree Expand file tree Collapse file tree
web/src/routes/(user)/albums/[albumId=id]/[[photos=photos]]/[[assetId=id]] Expand file tree Collapse file tree Original file line number Diff line number Diff line change 500500 {#if album .assetCount > 0 }
501501 <CircleIconButton title ={$t (' slideshow' )} onclick ={handleStartSlideshow } icon ={mdiPresentationPlay } />
502502 <CircleIconButton title ={$t (' download' )} onclick ={handleDownloadAlbum } icon ={mdiFolderDownloadOutline } />
503+ {/if }
503504
504- {#if isOwned }
505- <ButtonContextMenu icon ={mdiDotsVertical } title ={$t (' album_options' )}>
505+ {#if isOwned }
506+ <ButtonContextMenu icon ={mdiDotsVertical } title ={$t (' album_options' )}>
507+ {#if album .assetCount > 0 }
506508 <MenuOption
507509 icon ={mdiImageOutline }
508510 text ={$t (' select_album_cover' )}
513515 text ={$t (' options' )}
514516 onClick ={() => (viewMode = AlbumPageViewMode .OPTIONS )}
515517 />
516- <MenuOption icon ={mdiDeleteOutline } text ={$t (' delete_album' )} onClick ={() => handleRemoveAlbum ()} />
517- </ButtonContextMenu >
518- {/if }
518+ {/if }
519+
520+ <MenuOption icon ={mdiDeleteOutline } text ={$t (' delete_album' )} onClick ={() => handleRemoveAlbum ()} />
521+ </ButtonContextMenu >
519522 {/if }
520523
521524 {#if isCreatingSharedAlbum && album .albumUsers .length === 0 }
You can’t perform that action at this time.
0 commit comments