Skip to content

Commit

Permalink
fold changes from temporary /perspectivesBeta back into /perspectives (
Browse files Browse the repository at this point in the history
  • Loading branch information
iamigo authored and pallavi2209 committed Nov 1, 2016
1 parent c21ddd3 commit 6926d4c
Show file tree
Hide file tree
Showing 9 changed files with 165 additions and 1,775 deletions.
6 changes: 1 addition & 5 deletions view/loadView.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ const viewmap = {
'/samples/:key/edit': 'admin',
'/perspectives': 'perspective/perspective',
'/perspectives/:key': 'perspective/perspective',
'/perspectivesBeta': 'perspectiveBeta/perspective',
'/perspectivesBeta/:key': 'perspectiveBeta/perspective',
};

/**
Expand Down Expand Up @@ -133,9 +131,7 @@ module.exports = function loadView(app, passport) {
// if url contains a query, render perspective detail page with realtime
// updates
if ((key === '/perspectives' && Object.keys(req.query).length) ||
key === '/perspectives/:key' ||
(key === '/perspectivesBeta' && Object.keys(req.query).length) ||
key === '/perspectivesBeta/:key') {
key === '/perspectives/:key') {
res.render(viewmap[key], templateVars);
} else {
res.render(viewmap[key], trackObj);
Expand Down
2 changes: 1 addition & 1 deletion view/perspective/PerspectiveController.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class PerspectiveController extends React.Component {
placeholderText='Search Perspectives'
options={ persNames }
showSearchIcon={ true }
onAddNewButton={ this.openCreatePanel.bind(this) }
onAddNewButton={ values.lenses ? this.openCreatePanel.bind(this) : undefined }
onClickItem={ this.goToUrl.bind(this) }
newButtonText='New Perspective'
/>
Expand Down

0 comments on commit 6926d4c

Please sign in to comment.