mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update shared components
This commit is contained in:
parent
912bd57ca0
commit
39fe608c2d
7 changed files with 122 additions and 62 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['paperdialoghelper', 'layoutManager', 'paper-button', 'css!./actionsheet'], function (paperdialoghelper, layoutManager) {
|
||||
define(['paperdialoghelper', 'layoutManager', 'dialogText', 'paper-button', 'css!./actionsheet'], function (paperdialoghelper, layoutManager, dialogText) {
|
||||
|
||||
function parentWithClass(elem, className) {
|
||||
|
||||
|
@ -103,7 +103,7 @@
|
|||
|
||||
// If any items have an icon, give them all an icon just to make sure they're all lined up evenly
|
||||
var renderIcon = itemsWithIcons.length;
|
||||
var center = options.title && (!itemsWithIcons.length);
|
||||
var center = options.title && (!itemsWithIcons.length || itemsWithIcons.length != options.items.length);
|
||||
|
||||
if (center) {
|
||||
dlg.classList.add('centered');
|
||||
|
@ -141,7 +141,7 @@
|
|||
|
||||
if (options.showCancel) {
|
||||
html += '<div class="buttons">';
|
||||
html += '<paper-button dialog-dismiss>' + Globalize.translate('core#ButtonCancel') + '</paper-button>';
|
||||
html += '<paper-button dialog-dismiss>' + dialogText.get('Cancel') + '</paper-button>';
|
||||
html += '</div>';
|
||||
}
|
||||
html += '</div>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue