Ignore:
Timestamp:
06/28/2026 12:11:39 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
0a58300
Parents:
89cc8c4
Message:

fix(ui): hide Fediverse + Notifications nav when AP/federation is off

The fedi nav item + the notifications bell (topnav + mobile profile sheet) were gated only on
canManageFedi, so they stayed visible with federation switched off. Now also gated on apEnabled,
consistent with the rest of the fedi UI which already hides when off. (The profile-sheet
Notifications item was previously ungated entirely.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/profile-sheet.ejs

    r89cc8c4 ra995698  
    5656        </a>
    5757      </li>
     58      <% if (typeof canManageFedi !== 'undefined' && canManageFedi && apEnabled) { %>
    5859      <li role="none">
    5960        <a href="/notifications" class="profile-sheet-item" role="menuitem" data-close-sheet>
     
    6364        </a>
    6465      </li>
    65       <% if (typeof canManageFedi !== 'undefined' && canManageFedi) { %>
     66      <% } %>
     67      <% if (typeof canManageFedi !== 'undefined' && canManageFedi && apEnabled) { %>
    6668      <li role="none">
    6769        <a href="/news" class="profile-sheet-item" role="menuitem" data-close-sheet
Note: See TracChangeset for help on using the changeset viewer.