mirror of
https://github.com/flarum/framework.git
synced 2025-04-30 00:24:04 +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() {
|
export default function() {
|
||||||
app.routes.tags = {path: '/tags', component: TagsPage.component()};
|
app.routes.tags = {path: '/tags', component: TagsPage.component()};
|
||||||
|
|
||||||
|
app.extensionSettings.tags = () => m.route(app.route('tags'));
|
||||||
|
|
||||||
extend(AdminNav.prototype, 'items', items => {
|
extend(AdminNav.prototype, 'items', items => {
|
||||||
items.add('tags', AdminLinkButton.component({
|
items.add('tags', AdminLinkButton.component({
|
||||||
href: app.route('tags'),
|
href: app.route('tags'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user