File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ class Nav extends React.PureComponent {
30
30
super ( props ) ;
31
31
this . handleSave = this . handleSave . bind ( this ) ;
32
32
this . handleNew = this . handleNew . bind ( this ) ;
33
+ this . handleDuplicate = this . handleDuplicate . bind ( this ) ;
33
34
this . handleShare = this . handleShare . bind ( this ) ;
34
35
this . handleDownload = this . handleDownload . bind ( this ) ;
35
36
this . handleLangSelection = this . handleLangSelection . bind ( this ) ;
@@ -56,6 +57,10 @@ class Nav extends React.PureComponent {
56
57
}
57
58
}
58
59
60
+ handleDuplicate ( ) {
61
+ this . props . cloneProject ( ) ;
62
+ }
63
+
59
64
handleLangSelection ( event ) {
60
65
this . props . setLanguage ( event . target . value ) ;
61
66
this . props . showToast ( 1500 ) ;
@@ -132,7 +137,7 @@ class Nav extends React.PureComponent {
132
137
</ NavMenuItem >
133
138
< NavMenuItem
134
139
hideIf = { ! this . props . project . id || ! this . props . user . authenticated }
135
- onClick = { this . props . cloneProject }
140
+ onClick = { this . handleDuplicate }
136
141
>
137
142
{ this . props . t ( 'Nav.File.Duplicate' ) }
138
143
</ NavMenuItem >
You can’t perform that action at this time.
0 commit comments