diff --git a/server/camlistored/ui/header.js b/server/camlistored/ui/header.js index 23a75adba..66be397c6 100644 --- a/server/camlistored/ui/header.js +++ b/server/camlistored/ui/header.js @@ -54,7 +54,7 @@ cam.Header = React.createClass({ mainControls: React.PropTypes.arrayOf(React.PropTypes.renderable), onNewPermanode: React.PropTypes.func, onSearch: React.PropTypes.func, - searchRootsURL: React.PropTypes.instanceOf(goog.Uri).isRequired, + favoritesURL: React.PropTypes.instanceOf(goog.Uri).isRequired, statusURL: React.PropTypes.instanceOf(goog.Uri).isRequired, timer: React.PropTypes.shape({setTimeout:React.PropTypes.func.isRequired, clearTimeout:React.PropTypes.func.isRequired}).isRequired, width: React.PropTypes.number.isRequired, @@ -224,7 +224,7 @@ cam.Header = React.createClass({ this.getMenuItem_('Importers', this.props.importersURL), this.getMenuItem_('Server status', this.props.statusURL), - this.getMenuItem_('Search roots', this.props.searchRootsURL), + this.getMenuItem_('Favorites', this.props.favoritesURL), this.getMenuItem_('Help', this.props.helpURL), errorItems ); diff --git a/server/camlistored/ui/index.js b/server/camlistored/ui/index.js index 5dd96d086..6356d25d9 100644 --- a/server/camlistored/ui/index.js +++ b/server/camlistored/ui/index.js @@ -620,7 +620,7 @@ cam.IndexPage = React.createClass({ onUpload: this.handleUpload_, onNewPermanode: this.handleCreateSetWithSelection_, onSearch: this.setSearch_, - searchRootsURL: this.getSearchRootsURL_(), + favoritesURL: this.getFavoritesURL_(), statusURL: this.baseURL_.resolve(new goog.Uri(this.props.config.statusRoot)), ref: 'header', timer: this.props.timer, @@ -633,7 +633,7 @@ cam.IndexPage = React.createClass({ this.props.serverConnection.createPermanode(this.getDetailURL_.bind(this)); }, - getSearchRootsURL_: function() { + getFavoritesURL_: function() { return this.baseURL_.clone().setParameterValue( 'q', this.SEARCH_PREFIX_.RAW + ':' + JSON.stringify({