mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Clean up the settings menu on mobile
This commit is contained in:
parent
02ce5f6d6c
commit
9115a4e1fa
2 changed files with 12 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
define(["apphost", "connectionManager", "listViewStyle", "emby-button"], function(appHost, connectionManager) {
|
||||
define(["apphost", "connectionManager", "layoutManager", "listViewStyle", "emby-button"], function(appHost, connectionManager, layoutManager) {
|
||||
"use strict";
|
||||
|
||||
return function(view, params) {
|
||||
|
@ -43,6 +43,12 @@ define(["apphost", "connectionManager", "listViewStyle", "emby-button"], functio
|
|||
page.querySelector(".adminSection").classList.add("hide");
|
||||
}
|
||||
|
||||
if (layoutManager.mobile) {
|
||||
page.querySelector(".headerUsername").classList.add("hide");
|
||||
page.querySelector(".adminSection").classList.add("hide");
|
||||
page.querySelector(".userSection").classList.add("hide");
|
||||
}
|
||||
|
||||
ApiClient.getUser(userId).then(function(user) {
|
||||
page.querySelector(".headerUsername").innerHTML = user.Name;
|
||||
if (!user.Policy.IsAdministrator) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue