diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-13 09:33:57 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-13 09:33:57 +0200 |
commit | 6f45607f57c55550808824ffdeebbf10353a2554 (patch) | |
tree | 632299fe9ad96d6ef54001121a9bfaa61de1bc20 /apps/files/appinfo/app.php | |
parent | 1f9e50086cc404d6dd46c5ae664f951faaf74c98 (diff) | |
download | nextcloud-server-6f45607f57c55550808824ffdeebbf10353a2554.tar.gz nextcloud-server-6f45607f57c55550808824ffdeebbf10353a2554.zip |
Upgraded navigation submenu management and api + created sharing submenu
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/appinfo/app.php')
-rw-r--r-- | apps/files/appinfo/app.php | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/apps/files/appinfo/app.php b/apps/files/appinfo/app.php index fbe33fb54fe..a7ce4e18306 100644 --- a/apps/files/appinfo/app.php +++ b/apps/files/appinfo/app.php @@ -39,24 +39,29 @@ $templateManager->registerTemplate('application/vnd.oasis.opendocument.presentat $templateManager->registerTemplate('application/vnd.oasis.opendocument.text', 'core/templates/filetemplates/template.odt'); $templateManager->registerTemplate('application/vnd.oasis.opendocument.spreadsheet', 'core/templates/filetemplates/template.ods'); -\OCA\Files\App::getNavigationManager()->add(function () use ($l) { - return [ - 'id' => 'files', - 'appname' => 'files', - 'script' => 'list.php', - 'order' => 0, - 'name' => $l->t('All files'), - ]; -}); - -\OCA\Files\App::getNavigationManager()->add(function () use ($l) { - return [ - 'id' => 'recent', - 'appname' => 'files', - 'script' => 'recentlist.php', - 'order' => 2, - 'name' => $l->t('Recent'), - ]; -}); +\OCA\Files\App::getNavigationManager()->add([ + 'id' => 'files', + 'appname' => 'files', + 'script' => 'list.php', + 'order' => 0, + 'name' => $l->t('All files'), +]); + +\OCA\Files\App::getNavigationManager()->add([ + 'id' => 'recent', + 'appname' => 'files', + 'script' => 'recentlist.php', + 'order' => 2, + 'name' => $l->t('Recent'), +]); + +\OCA\Files\App::getNavigationManager()->add([ + 'id' => 'favorites', + 'appname' => 'files', + 'script' => 'simplelist.php', + 'order' => 5, + 'name' => $l->t('Favorites'), + 'expandedState' => 'show_Quick_Access' +]); \OCP\Util::connectHook('\OCP\Config', 'js', '\OCA\Files\App', 'extendJsConfig'); |