mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fixed localization with item selection
This commit is contained in:
parent
27a6b8c1ea
commit
79b60ebdd4
1 changed files with 3 additions and 2 deletions
|
@ -9,6 +9,7 @@ import alert from '../alert';
|
||||||
import playlistEditor from '../playlisteditor/playlisteditor';
|
import playlistEditor from '../playlisteditor/playlisteditor';
|
||||||
import confirm from '../confirm/confirm';
|
import confirm from '../confirm/confirm';
|
||||||
import itemHelper from '../itemHelper';
|
import itemHelper from '../itemHelper';
|
||||||
|
import datetime from '../../scripts/datetime';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
/* eslint-disable indent */
|
||||||
|
|
||||||
|
@ -78,7 +79,7 @@ import itemHelper from '../itemHelper';
|
||||||
if (selectedItems.length) {
|
if (selectedItems.length) {
|
||||||
const itemSelectionCount = document.querySelector('.itemSelectionCount');
|
const itemSelectionCount = document.querySelector('.itemSelectionCount');
|
||||||
if (itemSelectionCount) {
|
if (itemSelectionCount) {
|
||||||
itemSelectionCount.innerHTML = selectedItems.length;
|
itemSelectionCount.innerHTML = datetime.toLocaleString(selectedItems.length);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
hideSelections();
|
hideSelections();
|
||||||
|
@ -129,7 +130,7 @@ import itemHelper from '../itemHelper';
|
||||||
html += '<h1 class="itemSelectionCount"></h1>';
|
html += '<h1 class="itemSelectionCount"></h1>';
|
||||||
|
|
||||||
const moreIcon = 'more_vert';
|
const moreIcon = 'more_vert';
|
||||||
html += `<button is="paper-icon-button-light" class="btnSelectionPanelOptions autoSize" style="margin-left:auto;"><span class="material-icons ${moreIcon}" aria-hidden="true"></span></button>`;
|
html += `<button is="paper-icon-button-light" class="btnSelectionPanelOptions autoSize" style="margin-inline-start:auto;"><span class="material-icons ${moreIcon}" aria-hidden="true"></span></button>`;
|
||||||
|
|
||||||
selectionCommandsPanel.innerHTML = html;
|
selectionCommandsPanel.innerHTML = html;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue