Add dedicated refresh button to list views (#235)
This commit is contained in:
parent
7d6990eb90
commit
5e33212112
5 changed files with 50 additions and 0 deletions
|
@ -368,6 +368,16 @@ export const AlbumListHeaderFilters = ({ gridRef, tableRef }: AlbumListHeaderFil
|
||||||
<RiFilterFill size="1.3rem" />
|
<RiFilterFill size="1.3rem" />
|
||||||
</Button>
|
</Button>
|
||||||
<Divider orientation="vertical" />
|
<Divider orientation="vertical" />
|
||||||
|
<Button
|
||||||
|
compact
|
||||||
|
size="md"
|
||||||
|
tooltip={{ label: 'Refresh' }}
|
||||||
|
variant="subtle"
|
||||||
|
onClick={handleRefresh}
|
||||||
|
>
|
||||||
|
<RiRefreshLine size="1.3rem" />
|
||||||
|
</Button>
|
||||||
|
<Divider orientation="vertical" />
|
||||||
<DropdownMenu position="bottom-start">
|
<DropdownMenu position="bottom-start">
|
||||||
<DropdownMenu.Target>
|
<DropdownMenu.Target>
|
||||||
<Button
|
<Button
|
||||||
|
|
|
@ -356,6 +356,16 @@ export const AlbumArtistListHeaderFilters = ({
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Divider orientation="vertical" />
|
<Divider orientation="vertical" />
|
||||||
|
<Button
|
||||||
|
compact
|
||||||
|
size="md"
|
||||||
|
tooltip={{ label: 'Refresh' }}
|
||||||
|
variant="subtle"
|
||||||
|
onClick={handleRefresh}
|
||||||
|
>
|
||||||
|
<RiRefreshLine size="1.3rem" />
|
||||||
|
</Button>
|
||||||
|
<Divider orientation="vertical" />
|
||||||
<DropdownMenu position="bottom-start">
|
<DropdownMenu position="bottom-start">
|
||||||
<DropdownMenu.Target>
|
<DropdownMenu.Target>
|
||||||
<Button
|
<Button
|
||||||
|
|
|
@ -266,6 +266,16 @@ export const GenreListHeaderFilters = ({ gridRef, tableRef }: GenreListHeaderFil
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Divider orientation="vertical" />
|
<Divider orientation="vertical" />
|
||||||
|
<Button
|
||||||
|
compact
|
||||||
|
size="md"
|
||||||
|
tooltip={{ label: 'Refresh' }}
|
||||||
|
variant="subtle"
|
||||||
|
onClick={handleRefresh}
|
||||||
|
>
|
||||||
|
<RiRefreshLine size="1.3rem" />
|
||||||
|
</Button>
|
||||||
|
<Divider orientation="vertical" />
|
||||||
<DropdownMenu position="bottom-start">
|
<DropdownMenu position="bottom-start">
|
||||||
<DropdownMenu.Target>
|
<DropdownMenu.Target>
|
||||||
<Button
|
<Button
|
||||||
|
|
|
@ -282,6 +282,16 @@ export const PlaylistListHeaderFilters = ({
|
||||||
onToggle={handleToggleSortOrder}
|
onToggle={handleToggleSortOrder}
|
||||||
/>
|
/>
|
||||||
<Divider orientation="vertical" />
|
<Divider orientation="vertical" />
|
||||||
|
<Button
|
||||||
|
compact
|
||||||
|
size="md"
|
||||||
|
tooltip={{ label: 'Refresh' }}
|
||||||
|
variant="subtle"
|
||||||
|
onClick={handleRefresh}
|
||||||
|
>
|
||||||
|
<RiRefreshLine size="1.3rem" />
|
||||||
|
</Button>
|
||||||
|
<Divider orientation="vertical" />
|
||||||
<DropdownMenu position="bottom-start">
|
<DropdownMenu position="bottom-start">
|
||||||
<DropdownMenu.Target>
|
<DropdownMenu.Target>
|
||||||
<Button
|
<Button
|
||||||
|
|
|
@ -360,6 +360,16 @@ export const SongListHeaderFilters = ({ tableRef }: SongListHeaderFiltersProps)
|
||||||
<RiFilterFill size="1.3rem" />
|
<RiFilterFill size="1.3rem" />
|
||||||
</Button>
|
</Button>
|
||||||
<Divider orientation="vertical" />
|
<Divider orientation="vertical" />
|
||||||
|
<Button
|
||||||
|
compact
|
||||||
|
size="md"
|
||||||
|
tooltip={{ label: 'Refresh' }}
|
||||||
|
variant="subtle"
|
||||||
|
onClick={handleRefresh}
|
||||||
|
>
|
||||||
|
<RiRefreshLine size="1.3rem" />
|
||||||
|
</Button>
|
||||||
|
<Divider orientation="vertical" />
|
||||||
<DropdownMenu position="bottom-start">
|
<DropdownMenu position="bottom-start">
|
||||||
<DropdownMenu.Target>
|
<DropdownMenu.Target>
|
||||||
<Button
|
<Button
|
||||||
|
|
Reference in a new issue