Fixed navigation order
This commit is contained in:
parent
89ff2857fc
commit
d21b8108c8
|
@ -74,7 +74,12 @@ if (OC_App::isEnabled('files_encryption')) {
|
||||||
|
|
||||||
$nav = new OCP\Template('files', 'appnavigation', '');
|
$nav = new OCP\Template('files', 'appnavigation', '');
|
||||||
|
|
||||||
|
function sortNavigationItems($item1, $item2) {
|
||||||
|
return $item1['order'] - $item2['order'];
|
||||||
|
}
|
||||||
|
|
||||||
$navItems = \OCA\Files\App::getNavigationManager()->getAll();
|
$navItems = \OCA\Files\App::getNavigationManager()->getAll();
|
||||||
|
usort($navItems, 'sortNavigationItems');
|
||||||
$nav->assign('navigationItems', $navItems);
|
$nav->assign('navigationItems', $navItems);
|
||||||
|
|
||||||
$contentItems = array();
|
$contentItems = array();
|
||||||
|
|
|
@ -28,7 +28,7 @@ OC_FileProxy::register(new OCA\Files\Share\Proxy());
|
||||||
"id" => 'sharingin',
|
"id" => 'sharingin',
|
||||||
"appname" => 'files_sharing',
|
"appname" => 'files_sharing',
|
||||||
"script" => 'list.php',
|
"script" => 'list.php',
|
||||||
"order" => 3,
|
"order" => 10,
|
||||||
"name" => $l->t('Shared with you')
|
"name" => $l->t('Shared with you')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -37,7 +37,7 @@ OC_FileProxy::register(new OCA\Files\Share\Proxy());
|
||||||
"id" => 'sharingout',
|
"id" => 'sharingout',
|
||||||
"appname" => 'files_sharing',
|
"appname" => 'files_sharing',
|
||||||
"script" => 'list.php',
|
"script" => 'list.php',
|
||||||
"order" => 4,
|
"order" => 15,
|
||||||
"name" => $l->t('Shared with others')
|
"name" => $l->t('Shared with others')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -9,7 +9,7 @@ array(
|
||||||
"id" => 'trashbin',
|
"id" => 'trashbin',
|
||||||
"appname" => 'files_trashbin',
|
"appname" => 'files_trashbin',
|
||||||
"script" => 'list.php',
|
"script" => 'list.php',
|
||||||
"order" => 1,
|
"order" => 50,
|
||||||
"name" => $l->t('Deleted files')
|
"name" => $l->t('Deleted files')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue