mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 04:31:57 +08:00
Add extension settings shortcut
This commit is contained in:
parent
9da35b78a4
commit
f7068cd6d3
@ -7,6 +7,8 @@ import TagsPage from 'tags/components/TagsPage';
|
||||
export default function() {
|
||||
app.routes.tags = {path: '/tags', component: TagsPage.component()};
|
||||
|
||||
app.extensionSettings.tags = () => m.route(app.route('tags'));
|
||||
|
||||
extend(AdminNav.prototype, 'items', items => {
|
||||
items.add('tags', AdminLinkButton.component({
|
||||
href: app.route('tags'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user