New: Don't default manual import to move

Closes #5005
This commit is contained in:
Mark McDowall 2022-05-09 22:23:30 -07:00
parent d01e6d32de
commit 0d739cd26d
3 changed files with 7 additions and 1 deletions

View File

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

View File

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

View File

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