summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurélien <dav.aurelien@gmail.com>2021-01-26 14:41:46 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit6ebe676911584bf86d246c4656d42a176f08f242 (patch)
tree7d0e572e46f2dfe80c2f363dc561fc590b3f584f
parent08171bb42de718cda797462b9f5de029ce82afb9 (diff)
add root for access shared items
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
-rw-r--r--js/app/Config.js6
-rw-r--r--js/app/Run.js4
-rw-r--r--lib/Service/ItemService.php2
-rw-r--r--templates/part.navigation.starredfeed.php2
4 files changed, 13 insertions, 1 deletions
diff --git a/js/app/Config.js b/js/app/Config.js
index f7c62e7ae..8ac503b44 100644
--- a/js/app/Config.js
+++ b/js/app/Config.js
@@ -191,6 +191,12 @@ app.config(function ($routeProvider, $provide, $httpProvider, $locationProvider)
resolve: getItemResolve(feedType.STARRED),
type: feedType.STARRED
})
+ .when('/items/shared', {
+ controller: 'ContentController as Content',
+ templateUrl: 'content.html',
+ resolve: getItemResolve(feedType.SHARED),
+ type: feedType.SHARED
+ })
.when('/items/unread', {
controller: 'ContentController as Content',
templateUrl: 'content.html',
diff --git a/js/app/Run.js b/js/app/Run.js
index 1a1572864..6aa79f7dd 100644
--- a/js/app/Run.js
+++ b/js/app/Run.js
@@ -45,6 +45,10 @@ app.run(function ($rootScope, $location, $http, $q, $interval, $route, Loading,
url = '/items/starred';
break;
+ case FEED_TYPE.SHARED:
+ url = '/items/shared';
+ break;
+
case FEED_TYPE.EXPLORE:
url = '/explore';
break;
diff --git a/lib/Service/ItemService.php b/lib/Service/ItemService.php
index d1712fc8b..814a303ed 100644
--- a/lib/Service/ItemService.php
+++ b/lib/Service/ItemService.php
@@ -139,6 +139,8 @@ class ItemService extends Service
$userId,
$search
);
+ case FeedType::SHARED:
+ return [];
default:
return $this->itemMapper->findAllItems(
$limit,
diff --git a/templates/part.navigation.starredfeed.php b/templates/part.navigation.starredfeed.php
index 1f096d57d..7846f060d 100644
--- a/templates/part.navigation.starredfeed.php
+++ b/templates/part.navigation.starredfeed.php
@@ -4,7 +4,7 @@
}"
class="with-counter starred-feed">
- <a class="icon-starred" ng-href="#/items/starred/">
+ <a class="icon-starred" ng-href="#/items/shared/">
<?php p($l->t('Starred')) ?>
</a>