Skip to content

Commit ccde337

Browse files
committed
✨ Add fof-byobu item
1 parent e7c6ca8 commit ccde337

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

js/src/common/MobileTabItemsRegistry.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ export default class MobileTabItemsRegistry {
6161
});
6262
}
6363

64+
if ('fof-byobu' in flarum.extensions) {
65+
itemList.add('fof-byobu', {
66+
icon: app.forum.attribute('byobu.icon-badge') || 'fas fa-map',
67+
href: () => app.route('byobuPrivate'),
68+
label: app.translator.trans('acpl-mobile-tab.lib.item.fof-byobu'),
69+
canView: !!app.session.user,
70+
source: 'core',
71+
});
72+
}
73+
6474
app.store.all<CustomTabItem>('custom-tab-items').forEach((item) => {
6575
itemList.add(`custom-${item.id()}`, {
6676
label: item.label(),

locale/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ acpl-mobile-tab:
3434
profile: "Profile"
3535
tags: "Tags"
3636
messages: "Messages"
37+
fof-byobu: "Private"

0 commit comments

Comments
 (0)