File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ require('react-mfb-iceddev/mfb.css');
88
99const NewFileOverlay = require ( './overlays/new-file' ) ;
1010const DownloadOverlay = require ( './overlays/download' ) ;
11- const DeleteFileOverlay = require ( './overlays/delete-file ' ) ;
11+ const DeleteConfirmOverlay = require ( './overlays/delete-confirm ' ) ;
1212
1313const FileOperations = React . createClass ( {
1414 saveFile : function ( evt ) {
@@ -103,8 +103,8 @@ const FileOperations = React.createClass({
103103 const space = this . props . workspace ;
104104
105105 const component = (
106- < DeleteFileOverlay
107- filename = { space . filename . deref ( ) }
106+ < DeleteConfirmOverlay
107+ name = { space . filename . deref ( ) }
108108 onAccept = { this . deleteFile }
109109 onCancel = { this . hideOverlay } />
110110 ) ;
@@ -125,7 +125,9 @@ const FileOperations = React.createClass({
125125 render : function ( ) {
126126 return (
127127 < Menu effect = "zoomin" method = "click" position = "bl" >
128- < MainButton iconResting = "ion-plus-round" iconActive = "ion-close-round" />
128+ < MainButton
129+ iconResting = "ion-plus-round"
130+ iconActive = "ion-close-round" />
129131 < ChildButton
130132 onClick = { this . showDownloadOverlay }
131133 icon = "ion-code-download"
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ const Button = require('react-material/components/Button');
66
77const styles = require ( '../styles' ) ;
88
9- class DeleteFileOverlay extends React . Component {
9+ class DeleteConfirmOverlay extends React . Component {
1010 constructor ( ) {
1111 this . onAccept = this . onAccept . bind ( this ) ;
1212 this . onCancel = this . onCancel . bind ( this ) ;
1313 }
1414
1515 onAccept ( evt ) {
1616 if ( typeof this . props . onAccept === 'function' ) {
17- this . props . onAccept ( this . props . filename , evt ) ;
17+ this . props . onAccept ( this . props . name , evt ) ;
1818 }
1919 }
2020
@@ -27,7 +27,7 @@ class DeleteFileOverlay extends React.Component {
2727 render ( ) {
2828 return (
2929 < Card styles = { styles . overlay } >
30- < h3 style = { styles . overlayTitle } > Are you you want to delete { this . props . filename } ?</ h3 >
30+ < h3 style = { styles . overlayTitle } > Are you you want to delete { this . props . name } ?</ h3 >
3131 < div style = { styles . overlayButtonContainer } >
3232 < Button onClick = { this . onAccept } > Yes</ Button >
3333 < Button onClick = { this . onCancel } > No</ Button >
@@ -37,4 +37,4 @@ class DeleteFileOverlay extends React.Component {
3737 }
3838}
3939
40- module . exports = DeleteFileOverlay ;
40+ module . exports = DeleteConfirmOverlay ;
You can’t perform that action at this time.
0 commit comments