Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #207 from marklise/pcpchanges
Browse files Browse the repository at this point in the history
NOBUG: PCP Rework to redirect to legacy PCP.
  • Loading branch information
marklise authored Jul 26, 2017
2 parents 1875b4d + ebcd9e2 commit e8c2d4b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ angular.module('comment').config(['$stateProvider', 'moment', "_", function ($st
} else if (project.code === 'kemess-underground') {
window.location = "http://www.eao.gov.bc.ca/pcp/comments/kemess_underground_comments.html";
return null;
} else if (project.code === 'ajax-mine') {
window.location = "https://ajax.projects.eao.gov.bc.ca/public/project/569d3edbbfa11d0c009f92ee";
return null;
}

return CommentPeriodModel.forProject (project._id);
Expand Down Expand Up @@ -229,6 +226,11 @@ angular.module('comment').config(['$stateProvider', 'moment', "_", function ($st
templateUrl: 'modules/project-comments/client/views/period-view.html',
resolve: {
period: function ($stateParams, CommentPeriodModel) {
// Search specifically for the old AJAX pcp link (hardcoded in the DB)
if ($stateParams.periodId === '569d3edbbfa11d0c009f92ee') {
window.location = "https://ajax.projects.eao.gov.bc.ca/public/project/569d3edbbfa11d0c009f92ee";
return null;
}
return CommentPeriodModel.getForPublic ($stateParams.periodId);
},
userRoles: function(project, UserModel) {
Expand Down

0 comments on commit e8c2d4b

Please sign in to comment.