- Removes chat header widget area and adds topic breadcrumb option to quickstart theme

cc @barisusakli
This commit is contained in:
Julian Lam 2024-09-03 12:58:26 -04:00
parent 9e2cc7d51b
commit 26ffa901f8
2 changed files with 6 additions and 5 deletions

View File

@ -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';

View File

@ -8,6 +8,10 @@
<input type="checkbox" class="form-check-input" id="enableQuickReply" name="enableQuickReply" />
<label for="enableQuickReply" class="form-check-label">[[themes/harmony:settings.enableQuickReply]]</label>
</div>
<div class="form-check form-switch">
<input type="checkbox" class="form-check-input" id="enableBreadcrumbs" name="enableBreadcrumbs" />
<label for="enableBreadcrumbs" class="form-check-label">[[themes/harmony:settings.enableBreadcrumbs]]</label>
</div>
<div class="form-check form-switch">
<input type="checkbox" class="form-check-input" id="centerHeaderElements" name="centerHeaderElements" />
<label for="centerHeaderElements" class="form-check-label">[[themes/harmony:settings.centerHeaderElements]]</label>