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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-13 10:33:57 +0300
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-07-13 10:33:57 +0300
commit6f45607f57c55550808824ffdeebbf10353a2554 (patch)
tree632299fe9ad96d6ef54001121a9bfaa61de1bc20 /apps/files/appinfo
parent1f9e50086cc404d6dd46c5ae664f951faaf74c98 (diff)
Upgraded navigation submenu management and api + created sharing submenu
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/appinfo')
-rw-r--r--apps/files/appinfo/app.php43
-rw-r--r--apps/files/appinfo/routes.php11
2 files changed, 27 insertions, 27 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');
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php
index a9d8ba0a1b9..44663d185d1 100644
--- a/apps/files/appinfo/routes.php
+++ b/apps/files/appinfo/routes.php
@@ -77,14 +77,9 @@ $application->registerRoutes(
'verb' => 'GET',
],
[
- 'name' => 'API#showQuickAccess',
- 'url' => '/api/v1/quickaccess/set/showList',
- 'verb' => 'GET',
- ],
- [
- 'name' => 'API#getShowQuickAccess',
- 'url' => '/api/v1/quickaccess/get/showList',
- 'verb' => 'GET',
+ 'name' => 'API#toggleShowFolder',
+ 'url' => '/api/v1/toggleShowFolder/{key}',
+ 'verb' => 'POST'
],
[
'name' => 'API#getShowQuickaccessSettings',