1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix regression after PR #3046

`dialogHelper.open` has become async and it is not possible to perform any action immediately after calling it.
This commit is contained in:
Dmitry Lyzo 2021-10-27 00:07:59 +03:00
parent aa418cbf41
commit 570fa85809
3 changed files with 6 additions and 5 deletions

View file

@ -35,7 +35,7 @@ async function nativeConfirm(options) {
}
}
function customConfirm(text, title) {
async function customConfirm(text, title) {
let options;
if (typeof text === 'string') {
options = {
@ -62,6 +62,8 @@ function customConfirm(text, title) {
options.buttons = items;
await appRouter.ready();
return dialog.show(options).then(result => {
if (result === 'ok') {
return Promise.resolve();