mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 02:48:19 -07:00
Merge pull request #13 from dkanada/android
Send android clients to select server before login
This commit is contained in:
commit
4dc4a26719
@ -62,7 +62,14 @@ var Dashboard = {
|
||||
},
|
||||
logout: function(logoutWithServer) {
|
||||
function onLogoutDone() {
|
||||
Dashboard.navigate("login.html")
|
||||
var loginPage;
|
||||
if (AppInfo.isNativeApp) {
|
||||
loginPage = "selectserver.html";
|
||||
window.ApiClient = null;
|
||||
} else {
|
||||
loginPage = "login.html";
|
||||
}
|
||||
Dashboard.navigate(loginPage);
|
||||
}!1 === logoutWithServer ? onLogoutDone() : ConnectionManager.logout().then(onLogoutDone)
|
||||
},
|
||||
getConfigurationPageUrl: function(name) {
|
||||
@ -1033,7 +1040,7 @@ var Dashboard = {
|
||||
}, appRouter.showSelectServer = function() {
|
||||
AppInfo.isNativeApp ? Dashboard.navigate("selectserver.html") : Dashboard.navigate("login.html")
|
||||
}, appRouter.showWelcome = function() {
|
||||
Dashboard.navigate("login.html")
|
||||
Dashboard.navigate(AppInfo.isNativeApp ? "selectserver.html" : "login.html")
|
||||
}, appRouter.showSettings = function() {
|
||||
Dashboard.navigate("mypreferencesmenu.html")
|
||||
}, appRouter.showGuide = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user