server/perkeepd/ui: perm aspect takes precedence over map aspect

This change makes the Permanode aspect come before the Map in the list
of aspects. That way, if there is no specific aspect selected for a
permanode, the default one should then be Permanode rather than Map.

I'm not sure it's not going to break a specific workflow though.

Change-Id: I3d54dc84c7f4fb313d8ed0f7285db69b4ecbf366
This commit is contained in:
mpl 2018-04-27 17:25:28 -07:00
parent c698ff5add
commit a735460c3f
1 changed files with 1 additions and 1 deletions

View File

@ -241,10 +241,10 @@ cam.IndexPage = React.createClass({
var generalAspects = [
this.getSearchAspect_.bind(null, specificAspects),
cam.PermanodeDetail.getAspect.bind(null, this.props.serverConnection, this.props.timer, this.toggleKeyNavigation_),
cam.MapAspect.getAspect.bind(null, this.props.config,
this.props.availWidth, this.props.availHeight - this.HEADER_HEIGHT_,
this.updateSearchBarOnMap_, this.setPendingQuery_, this.childSearchSession_),
cam.PermanodeDetail.getAspect.bind(null, this.props.serverConnection, this.props.timer, this.toggleKeyNavigation_),
cam.BlobDetail.getAspect.bind(null, this.getDetailURL_, this.props.serverConnection),
].map(getAspect).filter(goog.functions.identity);