diff options
author | Joas Schilling <coding@schilljs.com> | 2017-03-27 11:00:23 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-03-27 11:00:23 +0300 |
commit | 265711d01d588931d6565f1b25af89a25ba9b8d6 (patch) | |
tree | addf19132274c911836809cb7ab8ca60e8e3b971 /appinfo | |
parent | 82704d4b7e8ab378a63e5c9a0ca89ec56c99c2e4 (diff) |
Register the navigation entry via info.xml
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/app.php | 14 | ||||
-rw-r--r-- | appinfo/info.xml | 8 |
2 files changed, 9 insertions, 13 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index 2ee2e004b..5b7f90be1 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -19,19 +19,7 @@ * */ -\OC::$server->getNavigationManager()->add(function() { - $l = \OC::$server->getL10N('spreed'); - $g = \OC::$server->getURLGenerator(); - - return [ - 'id' => 'spreed', - 'order' => 3, - 'href' => $g->linkToRoute('spreed.page.index'), - 'icon' => $g->imagePath('spreed', 'app.svg'), - 'name' => $l->t('Video calls'), - ]; -}); - +// For the navigation $l->t('Video calls') $manager = \OC::$server->getNotificationManager(); $manager->registerNotifier(function() { diff --git a/appinfo/info.xml b/appinfo/info.xml index c5cff1bfc..f402203c3 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -46,6 +46,14 @@ And in the works for the [coming versions](https://github.com/nextcloud/spreed/m </types> <namespace>Spreed</namespace> + <navigations> + <navigation> + <name>Video calls</name> + <route>spreed.page.index</route> + <order>3</order> + </navigation> + </navigations> + <settings> <admin>OCA\Spreed\Settings\Admin</admin> </settings> |