mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add titles to emby-scrollbuttons
This commit is contained in:
parent
03206f802c
commit
db362599c9
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
import './emby-scrollbuttons.scss';
|
||||
import 'webcomponents.js/webcomponents-lite';
|
||||
import '../emby-button/paper-icon-button-light';
|
||||
import globalize from '../../scripts/globalize';
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
||||
|
@ -13,8 +14,9 @@ const EmbyScrollButtonsPrototype = Object.create(HTMLDivElement.prototype);
|
|||
function getScrollButtonHtml(direction) {
|
||||
let html = '';
|
||||
const icon = direction === 'left' ? 'chevron_left' : 'chevron_right';
|
||||
const title = direction === 'left' ? globalize.translate('Previous') : globalize.translate('Next') ;
|
||||
|
||||
html += '<button type="button" is="paper-icon-button-light" data-ripple="false" data-direction="' + direction + '" class="emby-scrollbuttons-button">';
|
||||
html += `<button type="button" is="paper-icon-button-light" data-ripple="false" data-direction="${direction}" title="${title}" class="emby-scrollbuttons-button">`;
|
||||
html += '<span class="material-icons ' + icon + '" aria-hidden="true"></span>';
|
||||
html += '</button>';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue