1
0
Fork 0
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:
dkanada 2019-01-11 16:13:57 +09:00
parent 4678528d00
commit 3c0dbeedd5

View file

@ -62,7 +62,8 @@ var Dashboard = {
},
logout: function(logoutWithServer) {
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)
},
getConfigurationPageUrl: function(name) {
@ -1033,7 +1034,7 @@ var Dashboard = {
}, appRouter.showSelectServer = function() {
AppInfo.isNativeApp ? Dashboard.navigate("selectserver.html") : Dashboard.navigate("login.html")
}, appRouter.showWelcome = function() {
Dashboard.navigate("login.html")
AppInfo.isNativeApp ? Dashboard.navigate("selectserver.html") : Dashboard.navigate("login.html")
}, appRouter.showSettings = function() {
Dashboard.navigate("mypreferencesmenu.html")
}, appRouter.showGuide = function() {