Skip to content

Commit 54336e6

Browse files
rueckstiesskangas
authored andcommitted
INT-961 password didn't populate in connect window
due to a bug in storage-mixin that merged passwords into the wrong models.
1 parent 493326d commit 54336e6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
"raf": "^3.1.0",
133133
"run-sequence": "^1.1.4",
134134
"run-series": "^1.1.4",
135-
"storage-mixin": "^0.5.0",
135+
"storage-mixin": "^0.5.1",
136136
"stream-combiner2": "^1.1.1",
137137
"uuid": "^2.0.1",
138138
"vinyl-buffer": "^1.0.0",

src/connect/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ var ConnectView = View.extend({
216216
initialize: function() {
217217
document.title = 'Connect to MongoDB';
218218
this.connections.once('sync', this.connectionsFetched.bind(this));
219-
this.connections.fetch();
219+
// use {reset: true} to trigger `reset` event so ConnectionCollection
220+
// can add its listeners to the models.
221+
this.connections.fetch({reset: true});
220222
this.stateMachine = new BehaviorStateMachine(this);
221223
this.on('change:connectionNameEmpty',
222224
this.connectionNameEmptyChanged.bind(this));

0 commit comments

Comments
 (0)