refactor: carry Tags in the strip of our own pages
This commit is contained in:
parent
fa51d5793d
commit
e7a8e91334
3 changed files with 3 additions and 8 deletions
|
|
@ -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([
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -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([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue