refactor: carry Tags in the strip of our own pages

This commit is contained in:
randogoth 2026-10-11 13:36:44 +03:00
parent fa51d5793d
commit e7a8e91334
3 changed files with 3 additions and 8 deletions

View file

@ -35,12 +35,9 @@ Future<MewsPage> buildBookmarksPage(
[MewsText(strings.t('action-clear-search'))]),
const MewsText(actionSeparator),
],
if (tag != null && tag.isNotEmpty) ...[
if (tag != null && tag.isNotEmpty)
MewsLink(MewsUrls.page(url, {'tag': null}),
[MewsText(strings.t('bookmarks-show-all'))]),
const MewsText(actionSeparator),
],
MewsLink(MewsUrls.tags, [MewsText(strings.t('nav-tags'))]),
]),
if (tag != null && tag.isNotEmpty)
ParagraphBlock([

View file

@ -30,6 +30,7 @@ const navItems = <NavItem>[
(url: MewsUrls.bookmarks, labelId: 'nav-bookmarks'),
(url: MewsUrls.subscriptions, labelId: 'nav-subscriptions'),
(url: MewsUrls.history, labelId: 'nav-history'),
(url: MewsUrls.tags, labelId: 'nav-tags'),
(url: MewsUrls.settings, labelId: 'nav-settings'),
];

View file

@ -36,12 +36,9 @@ Future<MewsPage> buildSubscriptionsPage(
[MewsText(strings.t('action-clear-search'))]),
const MewsText(actionSeparator),
],
if (tag != null && tag.isNotEmpty) ...[
if (tag != null && tag.isNotEmpty)
MewsLink(MewsUrls.page(url, {'tag': null}),
[MewsText(strings.t('subscriptions-show-all'))]),
const MewsText(actionSeparator),
],
MewsLink(MewsUrls.tags, [MewsText(strings.t('nav-tags'))]),
]),
if (tag != null && tag.isNotEmpty)
ParagraphBlock([