From 08683a8a836551fb90b1d47c5ef9dcf8a1a61eec Mon Sep 17 00:00:00 2001 From: Ramin Haeri Azad Date: Tue, 16 Aug 2022 16:12:59 -0400 Subject: [PATCH] Published projects do not require auth, page listing cleanup (#4343) Co-authored-by: Ramin Haeri Azad --- .../rest/PublishedProjectsResource.java | 1 - .../webapp/app/project/project-controller.js | 7 +++++- .../app/project/views/project-list.html | 25 +++++++++++++------ 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/mica-rest/src/main/java/org/obiba/mica/project/rest/PublishedProjectsResource.java b/mica-rest/src/main/java/org/obiba/mica/project/rest/PublishedProjectsResource.java index 0f91b9b32b..381ea0a7fd 100644 --- a/mica-rest/src/main/java/org/obiba/mica/project/rest/PublishedProjectsResource.java +++ b/mica-rest/src/main/java/org/obiba/mica/project/rest/PublishedProjectsResource.java @@ -32,7 +32,6 @@ import com.codahale.metrics.annotation.Timed; @Path("/") -@RequiresAuthentication public class PublishedProjectsResource { @Inject diff --git a/mica-webapp/src/main/webapp/app/project/project-controller.js b/mica-webapp/src/main/webapp/app/project/project-controller.js index 3bc2394901..13aa308282 100644 --- a/mica-webapp/src/main/webapp/app/project/project-controller.js +++ b/mica-webapp/src/main/webapp/app/project/project-controller.js @@ -152,7 +152,7 @@ mica.project $scope.loading = true; $scope.pagination = {current: 1, searchText: ''}; $scope.totalCount = 0; - $scope.limit = 3; + $scope.limit = 20; $scope.sort = { column: `id`, order: 'asc' @@ -173,6 +173,11 @@ mica.project update(); }); + $scope.onPageSizeSelected = function(size) { + $scope.limit = size; + $scope.pagination.current = 1; + loadPage($scope.pagination.current); + }; update(); }]) diff --git a/mica-webapp/src/main/webapp/app/project/views/project-list.html b/mica-webapp/src/main/webapp/app/project/views/project-list.html index b7a93a2e48..1b91ab8d7e 100644 --- a/mica-webapp/src/main/webapp/app/project/views/project-list.html +++ b/mica-webapp/src/main/webapp/app/project/views/project-list.html @@ -34,14 +34,23 @@

-
- - +
+
+ + + + +