mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix code smells
This commit is contained in:
parent
1a0789f7b9
commit
2d97a56f51
5 changed files with 32 additions and 40 deletions
|
@ -13,7 +13,7 @@ import template from './dialog.template.html';
|
|||
|
||||
/* eslint-disable indent */
|
||||
|
||||
function showDialog(options, template) {
|
||||
function showDialog(options) {
|
||||
const dialogOptions = {
|
||||
removeOnClose: true,
|
||||
scrollY: false
|
||||
|
@ -129,9 +129,7 @@ import template from './dialog.template.html';
|
|||
options = text;
|
||||
}
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
showDialog(options, template).then(resolve, reject);
|
||||
});
|
||||
return showDialog(options);
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue