From 9bf74f29bdee44c8fe880197d28bd8c60153df98 Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Wed, 1 Nov 2017 14:13:50 +0000 Subject: [PATCH] Improve naming --- .../web/app/coffee/Features/Project/ProjectController.coffee | 2 +- services/web/app/views/project/list/side-bar.pug | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web/app/coffee/Features/Project/ProjectController.coffee b/services/web/app/coffee/Features/Project/ProjectController.coffee index 944ac04a2e..5b5668ec31 100644 --- a/services/web/app/coffee/Features/Project/ProjectController.coffee +++ b/services/web/app/coffee/Features/Project/ProjectController.coffee @@ -179,7 +179,7 @@ module.exports = ProjectController = notifications: notifications or [] user: user hasSubscription: results.hasSubscription[0] - isV1: results.v1Projects? + isShowingV1Projects: results.v1Projects? } if Settings?.algolia?.app_id? and Settings?.algolia?.read_only_api_key? diff --git a/services/web/app/views/project/list/side-bar.pug b/services/web/app/views/project/list/side-bar.pug index 4888cfdc70..69bfecd50a 100644 --- a/services/web/app/views/project/list/side-bar.pug +++ b/services/web/app/views/project/list/side-bar.pug @@ -45,7 +45,7 @@ a(href) #{translate("shared_with_you")} li(ng-class="{active: (filter == 'archived')}", ng-click="filterProjects('archived')") a(href) #{translate("deleted_projects")} - if isV1 + if isShowingV1Projects li(ng-class="{active: (filter == 'v1')}", ng-click="filterProjects('v1')") a(href) #{translate("v1_projects")} li.separator @@ -65,7 +65,7 @@ ) span.name {{tag.name}} span.subdued ({{tag.project_ids.length}}) - span.v1-badge(ng-if="tag.isV1", ng-cloak) + span.v1-badge(ng-if="tag.isShowingV1Projects", ng-cloak) span.dropdown.tag-menu(dropdown) a.dropdown-toggle( href="#",