File tree Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Expand file tree Collapse file tree 4 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 122
122
"moment" : " ^2.10.6" ,
123
123
"mongodb" : " ^2.2.8" ,
124
124
"mongodb-collection-model" : " ^0.2.3" ,
125
- "mongodb-connection-model" : " 5 .1.0" ,
126
- "mongodb-data-service" : " 1.7 .0" ,
125
+ "mongodb-connection-model" : " ^6 .1.0" ,
126
+ "mongodb-data-service" : " ^1.8 .0" ,
127
127
"mongodb-database-model" : " ^0.1.2" ,
128
128
"mongodb-explain-plan-model" : " ^0.2.0" ,
129
129
"mongodb-extended-json" : " ^1.7.0" ,
Original file line number Diff line number Diff line change @@ -75,6 +75,14 @@ var ConnectFormView = FormView.extend({
75
75
76
76
return obj ;
77
77
} ,
78
+ events : {
79
+ 'blur [name="hostname"]' : 'blurHostname'
80
+ } ,
81
+ blurHostname : function ( e ) {
82
+ if ( e . target . value . match ( / m o n g o d b .n e t $ / i) ) {
83
+ this . setValue ( 'ssl' , 'UNVALIDATED' ) ;
84
+ }
85
+ } ,
78
86
/**
79
87
* These are the default form fields that are always present in the connect dialog. Auth and
80
88
* SSL fields are added/removed dynamically, depending on whether the options are expanded or
Original file line number Diff line number Diff line change @@ -294,6 +294,11 @@ var ConnectView = View.extend({
294
294
// don't use "Local" as favorite name, keep field empty
295
295
this . connection . name = '' ;
296
296
this . updateForm ( ) ;
297
+ // @note : durran: This fixes not being able to save a new favorite
298
+ // from a collection that was auto-filled from the clipboard. Needed
299
+ // to be instantiated as new before saving otherwise it would get an
300
+ // error saying 'url' needed to be defined.
301
+ this . connection = null ;
297
302
} ,
298
303
299
304
/**
@@ -415,7 +420,9 @@ var ConnectView = View.extend({
415
420
this . connection . name = '' ;
416
421
if ( this . connection . last_used === null ) {
417
422
this . connection . destroy ( ) ;
418
- this . connections . deactivateAll ( ) ;
423
+ // this.connections.deactivateAll();
424
+ // @note : durran: This is raising an error that the method is not found.
425
+ // Removing doesn't seem to break anything. What was the intention?
419
426
this . createNewConnection ( ) ;
420
427
} else {
421
428
this . connection . save ( null ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ var NONE = {
21
21
22
22
var UNVALIDATED = {
23
23
_id : 'UNVALIDATED' ,
24
- title : 'Unvalidated' ,
24
+ title : 'Unvalidated/Atlas Deployment ' ,
25
25
description : 'Use SSL but do not perform any validation of'
26
26
+ ' the certificate chain... which is basically pointless.' ,
27
27
// @todo (imlucas) Fix `app.isFeatureEnabled` is not a function.
You can’t perform that action at this time.
0 commit comments