Support link-modules and add docs link (#368)

* Allow link type modules

* Add docs module

* Allow buttons to render as <a>

* Update button readme

* Use link buttons in module sidebar when needed
This commit is contained in:
Rijk van Zanten
2020-04-09 10:23:07 -04:00
committed by GitHub
parent f2034f7ade
commit 7a2ee0215f
9 changed files with 55 additions and 16 deletions

View File

@@ -0,0 +1,8 @@
import { defineModule } from '@/modules/define';
export default defineModule(({ i18n }) => ({
id: 'docs',
name: i18n.t('help_and_docs'),
icon: 'help',
link: 'https://docs.directus.io',
}));