Skip to content

Commit 6fa3657

Browse files
authored
COMPASS-834: Don't focus on instance when clicking refresh (#815)
1 parent 32afba7 commit 6fa3657

File tree

1 file changed

+6
-1
lines changed
  • src/internal-packages/instance-header/lib/stores

1 file changed

+6
-1
lines changed

src/internal-packages/instance-header/lib/stores/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,19 @@ const InstanceHeaderStore = Reflux.createStore({
4444
};
4545
},
4646

47+
/**
48+
* @note: Durran: COMPASS-834. Getting instance details does not necessarily mean that
49+
* the active namespace is the instance itself. The user can refresh the instance while
50+
* being on a database or collection view.
51+
*/
4752
fetchInstanceDetails(state) {
4853
this.setState({
4954
hostname: state.instance.hostname,
5055
port: state.instance.port,
5156
processStatus: 'TODO: Get Replica Set Status',
5257
versionDistro: state.instance.build.enterprise_module ? 'Enterprise' : 'Community',
5358
versionNumber: state.instance.build.version,
54-
activeNamespace: ''
59+
activeNamespace: NamespaceStore.ns || ''
5560
});
5661
},
5762

0 commit comments

Comments
 (0)