mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-01-15 08:23:36 -03:00
Backport pull request #7387 from jellyfin-web/release-10.11.z
Fix card actions in experimental layout
Original-merge: 9f1370f242
Merged-by: thornbill <thornbill@users.noreply.github.com>
Backported-by: thornbill <thornbill@users.noreply.github.com>
This commit is contained in:
@@ -390,7 +390,7 @@ export function onClick(e) {
|
||||
}
|
||||
}
|
||||
|
||||
if (action) {
|
||||
if (action && action !== 'none') {
|
||||
executeAction(card, actionElement, action);
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
@@ -69,6 +69,7 @@ const PlayedButton: FC<PlayedButtonProps> = ({
|
||||
);
|
||||
return (
|
||||
<IconButton
|
||||
data-action='none'
|
||||
title={getTitle()}
|
||||
className={btnClass}
|
||||
size='small'
|
||||
|
||||
@@ -56,6 +56,7 @@ const FavoriteButton: FC<FavoriteButtonProps> = ({
|
||||
|
||||
return (
|
||||
<IconButton
|
||||
data-action='none'
|
||||
title={isFavorite ? globalize.translate('Favorite') : globalize.translate('AddToFavorites')}
|
||||
className={btnClass}
|
||||
size='small'
|
||||
|
||||
Reference in New Issue
Block a user