Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.

Commit 76605d8

Browse files
authored
style: Update connection action text copy to duplicate (#236)
1 parent e4632c9 commit 76605d8

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/actions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 },

src/components/sidebar/favorites.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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"

src/stores/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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']));

test/renderer/stores/index.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)