mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
feat: Make "Clear" button "Refresh" when there are no lyrics found. (#1920)
Ref: effvli/feishin#1919 - tl;dr: Button actually reloads/refreshes lyrics info from the server too, it makes it, well, clearer what it does in that case - allows to reread lyrics from server without clearing whole cache.
This commit is contained in:
@@ -131,7 +131,9 @@ export const LyricsActions = ({
|
|||||||
uppercase
|
uppercase
|
||||||
variant="subtle"
|
variant="subtle"
|
||||||
>
|
>
|
||||||
{t('common.clear', { postProcess: 'sentenceCase' })}
|
{hasLyrics
|
||||||
|
? t('common.clear', { postProcess: 'sentenceCase' })
|
||||||
|
: t('common.refresh', { postProcess: 'sentenceCase' })}
|
||||||
</Button>
|
</Button>
|
||||||
) : null}
|
) : null}
|
||||||
</Group>
|
</Group>
|
||||||
|
|||||||
Reference in New Issue
Block a user