fix(archive): automatically add .zip extension if omitted while creating archives

This commit is contained in:
Mahdi Dibaiee 2015-10-24 21:33:15 +03:30
parent a9c5890c3c
commit 4253732492

View File

@ -189,6 +189,10 @@ export default {
return; return;
} }
if (input.value.slice(-4) !== '.zip') {
input.value += '.zip';
}
let activeFile = store.getState().get('activeFile'); let activeFile = store.getState().get('activeFile');
this.props.dispatch(compress(activeFile, input.value)) this.props.dispatch(compress(activeFile, input.value))
this.props.dispatch(hideAll()); this.props.dispatch(hideAll());