mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-12 11:14:38 +00:00
Add a button to show all, when filtering new items.
This commit is contained in:
parent
c716b86def
commit
58ab888f3f
2 changed files with 9 additions and 0 deletions
|
@ -52,6 +52,13 @@ block content
|
||||||
ng-href="{{ announcement.url }}"
|
ng-href="{{ announcement.url }}"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
) Read more
|
) Read more
|
||||||
|
div.text-center(
|
||||||
|
ng-if="ui.newItems > 0 && ui.newItems < announcements.length"
|
||||||
|
)
|
||||||
|
a.btn.btn-default.btn-sm(
|
||||||
|
href
|
||||||
|
ng-click="showAll();"
|
||||||
|
) Show all
|
||||||
|
|
||||||
.row(ng-cloak)
|
.row(ng-cloak)
|
||||||
span(ng-if="projects.length > 0")
|
span(ng-if="projects.length > 0")
|
||||||
|
|
|
@ -24,4 +24,6 @@ define [
|
||||||
$scope.ui.newItems = 0
|
$scope.ui.newItems = 0
|
||||||
markAnnouncementsAsRead()
|
markAnnouncementsAsRead()
|
||||||
|
|
||||||
|
$scope.showAll = ->
|
||||||
|
$scope.ui.newItems = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue