mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add v1 filter
This commit is contained in:
parent
5ee52408e5
commit
c1b3cc3a69
2 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,9 @@
|
|||
a(href) #{translate("shared_with_you")}
|
||||
li(ng-class="{active: (filter == 'archived')}", ng-click="filterProjects('archived')")
|
||||
a(href) #{translate("deleted_projects")}
|
||||
if isV1
|
||||
li(ng-class="{active: (filter == 'v1')}", ng-click="filterProjects('v1')")
|
||||
a(href) #{translate("v1_projects")}
|
||||
li.separator
|
||||
h2 #{translate("folders")}
|
||||
li.tag(
|
||||
|
|
|
@ -133,6 +133,9 @@ define [
|
|||
if project.archived
|
||||
visible = false
|
||||
|
||||
if $scope.filter == "v1" and !project.isV1Project
|
||||
visible = false
|
||||
|
||||
if visible
|
||||
$scope.visibleProjects.push project
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue