fix file.create: fix creating files and directories

fix files.list: fix single files showing in the middle of screen instead of top
feat files.style: introduce file hover color (feedback on touch)
This commit is contained in:
Mahdi Dibaiee
2015-09-13 18:56:35 +04:30
parent 779d890513
commit 336dd01dcb
10 changed files with 36 additions and 14 deletions

View File

@ -16,7 +16,7 @@ export default {
let input = React.findDOMNode(this.refs.input);
let cwd = store.getState().get('cwd');
let action = create(cwd + input.value);
let action = create(cwd + '/' + input.value);
this.props.dispatch(action);
this.props.dispatch(hideAll());
this.props.dispatch(active());
@ -28,7 +28,7 @@ export default {
let input = React.findDOMNode(this.refs.input);
let cwd = store.getState().get('cwd');
let action = create(cwd + input.value, true);
let action = create(cwd + '/' + input.value, true);
this.props.dispatch(action);
this.props.dispatch(hideAll());
this.props.dispatch(active());