Merge pull request #2805 from kelvininc/user_menu_theme_improvement

Allow to explicit use userMenu in the theme configuration
This commit is contained in:
Nick O'Leary
2021-01-06 11:37:22 +00:00
committed by GitHub
2 changed files with 16 additions and 1 deletions

View File

@@ -219,7 +219,7 @@ RED.user = (function() {
function init() {
if (RED.settings.user) {
if (!RED.settings.editorTheme || !RED.settings.editorTheme.hasOwnProperty("userMenu")) {
if (!RED.settings.editorTheme || !RED.settings.editorTheme.hasOwnProperty("userMenu") || RED.settings.editorTheme.userMenu) {
var userMenu = $('<li><a id="red-ui-header-button-user" class="button hide" href="#"></a></li>')
.prependTo(".red-ui-header-toolbar");