mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
send android clients to select server before login
This commit is contained in:
parent
4678528d00
commit
3c0dbeedd5
1 changed files with 3 additions and 2 deletions
|
@ -62,7 +62,8 @@ var Dashboard = {
|
||||||
},
|
},
|
||||||
logout: function(logoutWithServer) {
|
logout: function(logoutWithServer) {
|
||||||
function onLogoutDone() {
|
function onLogoutDone() {
|
||||||
Dashboard.navigate("login.html")
|
var loginPage;
|
||||||
|
AppInfo.isNativeApp ? (loginPage = "selectserver.html", window.ApiClient = null) : loginPage = "login.html", Dashboard.navigate(loginPage)
|
||||||
}!1 === logoutWithServer ? onLogoutDone() : ConnectionManager.logout().then(onLogoutDone)
|
}!1 === logoutWithServer ? onLogoutDone() : ConnectionManager.logout().then(onLogoutDone)
|
||||||
},
|
},
|
||||||
getConfigurationPageUrl: function(name) {
|
getConfigurationPageUrl: function(name) {
|
||||||
|
@ -1033,7 +1034,7 @@ var Dashboard = {
|
||||||
}, appRouter.showSelectServer = function() {
|
}, appRouter.showSelectServer = function() {
|
||||||
AppInfo.isNativeApp ? Dashboard.navigate("selectserver.html") : Dashboard.navigate("login.html")
|
AppInfo.isNativeApp ? Dashboard.navigate("selectserver.html") : Dashboard.navigate("login.html")
|
||||||
}, appRouter.showWelcome = function() {
|
}, appRouter.showWelcome = function() {
|
||||||
Dashboard.navigate("login.html")
|
AppInfo.isNativeApp ? Dashboard.navigate("selectserver.html") : Dashboard.navigate("login.html")
|
||||||
}, appRouter.showSettings = function() {
|
}, appRouter.showSettings = function() {
|
||||||
Dashboard.navigate("mypreferencesmenu.html")
|
Dashboard.navigate("mypreferencesmenu.html")
|
||||||
}, appRouter.showGuide = function() {
|
}, appRouter.showGuide = function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue