Explorar el Código

Improve naming

Alasdair Smith hace 9 años
padre
commit
9bf74f29bd

+ 1 - 1
services/web/app/coffee/Features/Project/ProjectController.coffee

@@ -179,7 +179,7 @@ module.exports = ProjectController =
 						notifications: notifications or []
 						notifications: notifications or []
 						user: user
 						user: user
 						hasSubscription: results.hasSubscription[0]
 						hasSubscription: results.hasSubscription[0]
-						isV1: results.v1Projects?
+						isShowingV1Projects: results.v1Projects?
 					}
 					}
 
 
 					if Settings?.algolia?.app_id? and Settings?.algolia?.read_only_api_key?
 					if Settings?.algolia?.app_id? and Settings?.algolia?.read_only_api_key?

+ 2 - 2
services/web/app/views/project/list/side-bar.pug

@@ -45,7 +45,7 @@
 			a(href) #{translate("shared_with_you")}
 			a(href) #{translate("shared_with_you")}
 		li(ng-class="{active: (filter == 'archived')}", ng-click="filterProjects('archived')")
 		li(ng-class="{active: (filter == 'archived')}", ng-click="filterProjects('archived')")
 			a(href) #{translate("deleted_projects")}
 			a(href) #{translate("deleted_projects")}
-		if isV1
+		if isShowingV1Projects
 			li(ng-class="{active: (filter == 'v1')}", ng-click="filterProjects('v1')")
 			li(ng-class="{active: (filter == 'v1')}", ng-click="filterProjects('v1')")
 				a(href) #{translate("v1_projects")}
 				a(href) #{translate("v1_projects")}
 		li.separator
 		li.separator
@@ -65,7 +65,7 @@
 				)
 				)
 				span.name {{tag.name}} 
 				span.name {{tag.name}} 
 					span.subdued  ({{tag.project_ids.length}})
 					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)
 			span.dropdown.tag-menu(dropdown)
 				a.dropdown-toggle(
 				a.dropdown-toggle(
 					href="#",
 					href="#",