This repository was archived by the owner on May 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ const Actions = Reflux.createActions({
1010 onChangeViewClicked : { sync : true } ,
1111 onConnectionFormChanged : { sync : true } ,
1212 onConnectClicked : { sync : true } ,
13- onCopyConnectionClicked : { sync : true } ,
1413 onCreateFavoriteClicked : { sync : true } ,
1514 onCustomUrlChanged : { sync : true } ,
1615 onDeleteConnectionClicked : { sync : true } ,
1716 onDeleteConnectionsClicked : { sync : true } ,
1817 onDisconnectClicked : { sync : true } ,
18+ onDuplicateConnectionClicked : { sync : true } ,
1919 onEditURICanceled : { sync : true } ,
2020 onEditURIClicked : { sync : true } ,
2121 onEditURIConfirmed : { sync : true } ,
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ class Favorites extends React.Component {
3333 * @param {Object } favorite - A favorite connection.
3434 * @param {Object } evt - evt.
3535 */
36- onCopyConnectionClicked ( favorite , evt ) {
36+ onDuplicateConnectionClicked ( favorite , evt ) {
3737 evt . stopPropagation ( ) ;
38- Actions . onCopyConnectionClicked ( favorite ) ;
38+ Actions . onDuplicateConnectionClicked ( favorite ) ;
3939 }
4040
4141 /**
@@ -153,9 +153,9 @@ class Favorites extends React.Component {
153153 >
154154 < MenuItem
155155 eventKey = "1"
156- onClick = { this . onCopyConnectionClicked . bind ( this , favorite ) }
156+ onClick = { this . onDuplicateConnectionClicked . bind ( this , favorite ) }
157157 >
158- Copy
158+ Duplicate
159159 </ MenuItem >
160160 < MenuItem
161161 eventKey = "2"
Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ const Store = Reflux.createStore({
374374 *
375375 * @param {Connection } connection - The favorite connection to copy.
376376 */
377- onCopyConnectionClicked ( connection ) {
377+ onDuplicateConnectionClicked ( connection ) {
378378 const newConnection = new Connection ( ) ;
379379
380380 newConnection . set ( omit ( connection , [ '_id' , 'color' ] ) ) ;
Original file line number Diff line number Diff line change @@ -1406,7 +1406,7 @@ describe('Store', () => {
14061406 } ) ;
14071407 } ) ;
14081408
1409- describe ( '#onCopyConnectionClicked ' , ( ) => {
1409+ describe ( '#onDuplicateConnectionClicked ' , ( ) => {
14101410 context ( 'when the current connection is being copied' , ( ) => {
14111411 const connection = new Connection ( {
14121412 hostname : 'localhost' ,
@@ -1451,7 +1451,7 @@ describe('Store', () => {
14511451 done ( ) ;
14521452 } ) ;
14531453
1454- Actions . onCopyConnectionClicked ( connection ) ;
1454+ Actions . onDuplicateConnectionClicked ( connection ) ;
14551455 } ) ;
14561456 } ) ;
14571457
@@ -1518,7 +1518,7 @@ describe('Store', () => {
15181518 done ( ) ;
15191519 } ) ;
15201520
1521- Actions . onCopyConnectionClicked ( connectionToCopy ) ;
1521+ Actions . onDuplicateConnectionClicked ( connectionToCopy ) ;
15221522 } ) ;
15231523 } ) ;
15241524 } ) ;
You can’t perform that action at this time.
0 commit comments