diff --git a/services/web/app/views/project/list/modals.jade b/services/web/app/views/project/list/modals.jade index e0fe24ad14..4f66507289 100644 --- a/services/web/app/views/project/list/modals.jade +++ b/services/web/app/views/project/list/modals.jade @@ -183,7 +183,9 @@ script(type='text/ng-template', id='deleteProjectsModalTemplate') data-dismiss="modal" ng-click="cancel()" ) × - h3 {{action}} #{translate("projects")} + h3(ng-if="action == 'delete'") #{translate("delete_projects")} + h3(ng-if="action == 'leave'") #{translate("leave_projects")} + h3(ng-if="action == 'delete-and-leave'") #{translate("delete_and_leave_projects")} .modal-body div(ng-show="projectsToDelete.length > 0") p #{translate("about_to_delete_projects")} diff --git a/services/web/public/coffee/main/project-list/modal-controllers.coffee b/services/web/public/coffee/main/project-list/modal-controllers.coffee index a841e369a8..dbf3c613ac 100644 --- a/services/web/public/coffee/main/project-list/modal-controllers.coffee +++ b/services/web/public/coffee/main/project-list/modal-controllers.coffee @@ -65,11 +65,11 @@ define [ $scope.projectsToLeave = projects.filter (project) -> project.accessLevel != "owner" if $scope.projectsToLeave.length > 0 and $scope.projectsToDelete.length > 0 - $scope.action = "Delete & Leave" + $scope.action = "delete-and-leave" else if $scope.projectsToLeave.length == 0 and $scope.projectsToDelete.length > 0 - $scope.action = "Delete" + $scope.action = "delete" else - $scope.action = "Leave" + $scope.action = "leave" $scope.delete = () -> $modalInstance.close()