Skip to content

Commit

Permalink
[UX] Clarify that you can't login using Playlet built-in backend (yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Jan 8, 2025
1 parent c141950 commit 75769b7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Ability to hide announcement messages
- [UX] Clarify that you can't login using Playlet built-in backend (Yet)

## [0.35.4] - 2025-01-07

Expand Down
11 changes: 11 additions & 0 deletions playlet-lib/src/components/Screens/ProfileScreen/ProfileScreen.bs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@ function OnRowItemSelected() as void
row = m.profileRowList.content.GetChild(0)
selectedProfile = row.GetChild(index)
if selectedProfile.type = "login"
invidiousInstance = m.preferences["invidious.instance"]
if StringUtils.IsNullOrEmpty(invidiousInstance)
DialogUtils.ShowDialogEx({
title: "No Invidious Instance"
message: [
"Playlet built-in backend does not support login yet.",
"Can only login if an Invidious instance is set in the settings."
]
})
return
end if
dialog = CreateObject("roSGNode", "LoginDialog")
dialog@.BindNode()
m.top.getScene().dialog = dialog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<field id="navBar" type="node" bind="/NavBar" />
<field id="profilesService" type="node" bind="/ProfilesService" />
<field id="appController" type="node" bind="/AppController" />
<field id="preferences" type="node" bind="/Preferences" />
</interface>

<children>
Expand Down

0 comments on commit 75769b7

Please sign in to comment.