Changeset 3f4049e in Klonkt


Ignore:
Timestamp:
06/23/2026 04:02:51 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
184393c
Parents:
d8eb74c
Message:

fix: hide view-switcher (Timeline/Grid + pager) on a fresh install with no site

Chrome showed the timeline/grid switcher on the welcome/setup page too (no
site = nothing to switch between). Now gated on the existence of a site.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/chrome.ejs

    rd8eb74c r3f4049e  
    3535  <% if (!_headerless) { %>
    3636    <%- include('profile-header') %>
    37     <% if (!_isAdmin) { %><%- include('view-switcher') %><% } %>
     37    <% if (!_isAdmin && (typeof site !== 'undefined' && site)) { %><%- include('view-switcher') %><% } %>
    3838  <% } %>
    3939<% } %>
Note: See TracChangeset for help on using the changeset viewer.