Files
wekan/client/components/settings/settingHeader.jade
T
Lauri Ojansivu 574c72370f Search shuts the panel it opened, and the Admin Panel tabs get their names.
Search was the same shape as Filter: it only ever OPENED, so clicking it while
the sidebar was already showing search did nothing visible and the only way back
was the sidebar's own X, somewhere else on screen from the thing you just
clicked.

The two now share one rule. models/lib/filterButton.js is
models/lib/sidebarViewButton.js, because a module named after Filter answering
for Search would be a name that lies, and one toggleSidebarView() helper applies
it - two copies of "which way does this click go" would eventually be two
answers.

The exception stays Filter's alone, and is now named as what it is rather than
assumed: with a filter ON the sidebar is the one place that says what is being
hidden from the board. Search has no such case - its results are inside the
panel and it hides nothing from the board - so it passes false and always
toggles.

The Admin Panel's four tabs carry their name beside the icon, each from the same
key its tooltip uses, and lose it below 1100px with every other label in the
bar.

Thanks to xet7 !
2026-08-01 00:55:39 +03:00

22 lines
1.2 KiB
Plaintext

template(name="adminPanelTabs")
if currentUser
.board-header-btns.admin-panel-tabs
//- Multitenancy option D (docs/Design/Multitenancy/Multitenancy.md, D.7):
Settings and Problems are about the INSTANCE, so a per-tenant Global
Admin does not get those tabs - they get People (their own Organizations
and their members) and Attachments (Backup, scoped to their tenant).
if currentUser.isAdmin
a.board-header-btn.settings(class=isSettingsActive href="{{pathFor 'setting'}}" title="{{_ 'settings'}}")
i.fa.fa-cog
span.board-header-btn-label {{_ 'settings'}}
a.board-header-btn.people(class=isPeopleActive href="{{pathFor 'people'}}" title="{{_ 'people'}}")
i.fa.fa-users
span.board-header-btn-label {{_ 'people'}}
a.board-header-btn.informations(class=isAttachmentsActive href="{{pathFor 'attachments'}}" title="{{_ 'attachments'}}")
i.fa.fa-paperclip
span.board-header-btn-label {{_ 'attachments'}}
if currentUser.isAdmin
a.board-header-btn.problems(class="{{isProblemsActive}} {{problemsClass}}" href="{{pathFor 'admin-reports'}}" title="{{_ 'problems'}}")
i.fa.fa-exclamation-triangle
span.board-header-btn-label {{_ 'problems'}}