From a735460c3f2d930e8514af0ef1a1df683a0ee1f2 Mon Sep 17 00:00:00 2001 From: mpl Date: Fri, 27 Apr 2018 17:25:28 -0700 Subject: [PATCH] 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 --- server/perkeepd/ui/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/perkeepd/ui/index.js b/server/perkeepd/ui/index.js index a87277fee..bf125cdc2 100644 --- a/server/perkeepd/ui/index.js +++ b/server/perkeepd/ui/index.js @@ -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);