mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
switch to shared paperdialoghelper
This commit is contained in:
parent
1cd7f5bac7
commit
024642e556
24 changed files with 152 additions and 296 deletions
|
@ -242,12 +242,18 @@
|
|||
ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).then(function (item) {
|
||||
|
||||
var dlg = paperDialogHelper.createDialog({
|
||||
theme: options.theme
|
||||
size: 'fullscreen-border'
|
||||
});
|
||||
|
||||
var theme = options.theme || 'b';
|
||||
|
||||
dlg.classList.add('ui-body-' + theme);
|
||||
dlg.classList.add('background-theme-' + theme);
|
||||
dlg.classList.add('popupEditor');
|
||||
|
||||
var html = '';
|
||||
html += '<h2 class="dialogHeader">';
|
||||
html += '<paper-fab icon="arrow-back" mini class="btnCloseDialog"></paper-fab>';
|
||||
html += '<paper-fab icon="arrow-back" mini class="btnCloseDialog" tabindex="-1"></paper-fab>';
|
||||
html += '<div style="display:inline-block;margin-left:.6em;vertical-align:middle;">' + item.Name + '</div>';
|
||||
html += '</h2>';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue