diff --git a/meshcentral-config-schema.json b/meshcentral-config-schema.json index fcff4f68..3703068e 100644 --- a/meshcentral-config-schema.json +++ b/meshcentral-config-schema.json @@ -1168,6 +1168,11 @@ "default": 2, "description": "Valid numbers are 1 and 2, changes the style of the login page and some secondary pages." }, + "showModernUIToggle": { + "type": "boolean", + "default": false, + "description": "When set to true, the user will be able to toggle between the modern and classic UI." + }, "title": { "type": "string", "default": "MeshCentral", diff --git a/public/styles/style-bootstrap.css b/public/styles/style-bootstrap.css index 3d30e5fe..bfd44b95 100644 --- a/public/styles/style-bootstrap.css +++ b/public/styles/style-bootstrap.css @@ -267,6 +267,16 @@ body { right: 3px; } +.textnewui { + color: white; + font-weight: bold; + padding-top: 5px; + cursor: pointer; + position: absolute; + right: 0; + margin-right: 10px; +} + .LogoffLinkColor { color:white; } diff --git a/public/styles/style.css b/public/styles/style.css index 4d8796cb..4df3ac40 100644 --- a/public/styles/style.css +++ b/public/styles/style.css @@ -266,7 +266,11 @@ body { .textnewui { color: white; font-weight: bold; - padding: 2px; + padding-top: 5px; + cursor: pointer; + position: absolute; + right: 0; + margin-right: 10px; } .LogoffLinkColor { diff --git a/sample-config-advanced.json b/sample-config-advanced.json index 936b0875..13c53654 100644 --- a/sample-config-advanced.json +++ b/sample-config-advanced.json @@ -186,6 +186,7 @@ "domains": { "": { "_siteStyle": 2, + "_showModernUIToggle": true, "title": "MyServer", "title2": "Servername", "_titlePicture": "title-sample.png", diff --git a/views/default.handlebars b/views/default.handlebars index e98b51d2..04b6f485 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -164,15 +164,8 @@
-
- | - - | -
- | - - | -