fix: apply nodebb/nodebb-theme-harmony@f40603ea5c
- Removes chat header widget area and adds topic breadcrumb option to quickstart theme cc @barisusakli
This commit is contained in:
+2
-5
@@ -11,6 +11,7 @@ const library = module.exports;
|
||||
|
||||
const defaults = {
|
||||
enableQuickReply: 'on',
|
||||
enableBreadcrumbs: 'on',
|
||||
centerHeaderElements: 'off',
|
||||
mobileTopicTeasers: 'off',
|
||||
stickyToolbar: 'on',
|
||||
@@ -129,11 +130,6 @@ library.defineWidgetAreas = async function (areas) {
|
||||
template: 'account/profile.tpl',
|
||||
location: 'profile-aboutme-after',
|
||||
},
|
||||
{
|
||||
name: 'Chat Header',
|
||||
template: 'chats.tpl',
|
||||
location: 'header',
|
||||
},
|
||||
]);
|
||||
|
||||
return areas;
|
||||
@@ -147,6 +143,7 @@ library.loadThemeConfig = async function (uid) {
|
||||
|
||||
const config = { ...defaults, ...themeConfig, ...(_.pick(userConfig, Object.keys(defaults))) };
|
||||
config.enableQuickReply = config.enableQuickReply === 'on';
|
||||
config.enableBreadcrumbs = config.enableBreadcrumbs === 'on';
|
||||
config.centerHeaderElements = config.centerHeaderElements === 'on';
|
||||
config.mobileTopicTeasers = config.mobileTopicTeasers === 'on';
|
||||
config.stickyToolbar = config.stickyToolbar === 'on';
|
||||
|
||||
Reference in New Issue
Block a user