mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix: set html player actionsheet to resolve on click
This commit is contained in:
parent
563a21bc4a
commit
20fca0768a
2 changed files with 2 additions and 1 deletions
|
@ -301,7 +301,7 @@ export function show(options) {
|
||||||
|
|
||||||
resolve(selectedId);
|
resolve(selectedId);
|
||||||
} else {
|
} else {
|
||||||
reject();
|
reject('ActionSheet closed without resolving');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -238,6 +238,7 @@ function showWithUser(options, player, user) {
|
||||||
|
|
||||||
return actionsheet.show({
|
return actionsheet.show({
|
||||||
items: menuItems,
|
items: menuItems,
|
||||||
|
resolveOnClick: true,
|
||||||
positionTo: options.positionTo
|
positionTo: options.positionTo
|
||||||
}).then(function (id) {
|
}).then(function (id) {
|
||||||
return handleSelectedOption(id, options, player);
|
return handleSelectedOption(id, options, player);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue