зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #79 from nextcloud/dont-unnecessary-loading-the-routing
Only load the routing when the navigation is displayed
This commit is contained in:
Коммит
433272de4c
|
@ -1,5 +1,4 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @author Jan-Christoph Borchardt, http://jancborchardt.net
|
||||
*
|
||||
|
@ -20,15 +19,16 @@
|
|||
*
|
||||
*/
|
||||
|
||||
$l = \OC::$server->getL10N('spreed');
|
||||
$g = \OC::$server->getURLGenerator();
|
||||
\OC::$server->getNavigationManager()->add(function() {
|
||||
$l = \OC::$server->getL10N('spreed');
|
||||
$g = \OC::$server->getURLGenerator();
|
||||
|
||||
\OC::$server->getNavigationManager()->add(
|
||||
[
|
||||
return [
|
||||
'id' => 'spreed',
|
||||
'order' => 3,
|
||||
'href' => $g->linkToRoute( 'spreed.page.index' ),
|
||||
'icon' => $g->imagePath( 'spreed', 'app.svg' ),
|
||||
'href' => $g->linkToRoute('spreed.page.index'),
|
||||
'icon' => $g->imagePath('spreed', 'app.svg'),
|
||||
'name' => $l->t('Calls'),
|
||||
]
|
||||
);
|
||||
|
||||
];
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче