Add v1 filter

This commit is contained in:
Alasdair Smith 2017-10-30 16:16:39 +00:00
parent 5ee52408e5
commit c1b3cc3a69
2 changed files with 6 additions and 0 deletions

View file

@ -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(

View file

@ -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