fix(archive): automatically add .zip extension if omitted while creating archives
This commit is contained in:
parent
a9c5890c3c
commit
4253732492
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user