mirror of
https://github.com/p-stream/p-stream.git
synced 2026-03-26 01:18:19 +00:00
Fix source edit button in player
This commit is contained in:
parent
69ac6d8e73
commit
fb5fcacd37
2 changed files with 14 additions and 9 deletions
|
|
@ -407,7 +407,8 @@
|
|||
"title": "No stream :("
|
||||
},
|
||||
"title": "Sources",
|
||||
"unknownOption": "Unknown"
|
||||
"unknownOption": "Unknown",
|
||||
"editOrder": "Edit order"
|
||||
},
|
||||
"subtitles": {
|
||||
"customChoice": "Drop or upload file",
|
||||
|
|
|
|||
|
|
@ -145,15 +145,19 @@ export function SourceSelectionView({
|
|||
|
||||
return (
|
||||
<>
|
||||
<Menu.BackLink onClick={() => router.navigate("/")}>
|
||||
<Menu.BackLink
|
||||
onClick={() => router.navigate("/")}
|
||||
rightSide={
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => window.open("/settings#source-order")}
|
||||
className="-mr-2 -my-1 px-2 p-[0.4em] rounded tabbable hover:bg-video-context-light hover:bg-opacity-10"
|
||||
>
|
||||
{t("player.menus.sources.editOrder")}
|
||||
</button>
|
||||
}
|
||||
>
|
||||
{t("player.menus.sources.title")}
|
||||
<Button
|
||||
theme="purple"
|
||||
onClick={() => window.open("/settings#source-order")}
|
||||
className="w-half h-8 ml-[95px]"
|
||||
>
|
||||
{t("settings.account.accountDetails.editProfile")}
|
||||
</Button>
|
||||
</Menu.BackLink>
|
||||
<Menu.Section className="pb-4">
|
||||
{sources.map((v) => (
|
||||
|
|
|
|||
Loading…
Reference in a new issue