Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-03-27 11:00:23 +0300
committerJoas Schilling <coding@schilljs.com>2017-03-27 11:00:23 +0300
commit265711d01d588931d6565f1b25af89a25ba9b8d6 (patch)
treeaddf19132274c911836809cb7ab8ca60e8e3b971 /appinfo
parent82704d4b7e8ab378a63e5c9a0ca89ec56c99c2e4 (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.php14
-rw-r--r--appinfo/info.xml8
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>