New: Don't default manual import to move

Closes #5005
pull/5027/head
Mark McDowall 3 years ago
parent d01e6d32de
commit 0d739cd26d

@ -94,6 +94,7 @@ const filterExistingFilesOptions = {
}; };
const importModeOptions = [ const importModeOptions = [
{ key: 'chooseImportMode', value: 'Choose Import Mode', disabled: true },
{ key: 'move', value: 'Move Files' }, { key: 'move', value: 'Move Files' },
{ key: 'copy', value: 'Hardlink/Copy Files' } { key: 'copy', value: 'Hardlink/Copy Files' }
]; ];

@ -178,6 +178,11 @@ class InteractiveImportModalContentConnector extends Component {
const existingFiles = []; const existingFiles = [];
const files = []; const files = [];
if (importMode === 'chooseImportMethod') {
this.setState({ interactiveImportErrorMessage: 'An import mode must be selected' });
return;
}
items.forEach((item) => { items.forEach((item) => {
const isSelected = selected.indexOf(item.id) > -1; const isSelected = selected.indexOf(item.id) > -1;

@ -34,7 +34,7 @@ export const defaultState = {
sortKey: 'quality', sortKey: 'quality',
sortDirection: sortDirections.DESCENDING, sortDirection: sortDirections.DESCENDING,
recentFolders: [], recentFolders: [],
importMode: 'move', importMode: 'chooseImportMode',
sortPredicates: { sortPredicates: {
relativePath: function(item, direction) { relativePath: function(item, direction) {
const relativePath = item.relativePath; const relativePath = item.relativePath;

Loading…
Cancel
Save