Skip to content

Commit

Permalink
chore: Update @nextcloud/dialogs to 5.1.1
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>

[skip ci]
  • Loading branch information
susnux authored and backportbot[bot] committed Jan 26, 2024
1 parent b0c003d commit 66ff3d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions apps/files/src/actions/moveOrCopyAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import type { MoveCopyResult } from './moveOrCopyActionUtils'
import { AxiosError } from 'axios'
import { basename, join } from 'path'
import { emit } from '@nextcloud/event-bus'
import { getFilePickerBuilder, showError } from '@nextcloud/dialogs'
import { FilePickerClosed, getFilePickerBuilder, showError } from '@nextcloud/dialogs'
import { Permission, FileAction, FileType, NodeStatus, davGetClient, davRootPath, davResultToNode, davGetDefaultPropfind } from '@nextcloud/files'
import { translate as t } from '@nextcloud/l10n'
import Vue from 'vue'
Expand Down Expand Up @@ -232,7 +232,11 @@ const openFilePickerForAction = async (action: MoveCopyAction, dir = '/', nodes:
const picker = filePicker.build()
picker.pick().catch((error) => {
logger.debug(error as Error)
reject(new Error(t('files', 'Cancelled move or copy operation')))
if (error instanceof FilePickerClosed) {
reject(new Error(t('files', 'Cancelled move or copy operation')))
} else {
reject(new Error(t('files', 'Move or copy operation failed')))
}
})
})
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@nextcloud/browserslist-config": "^3.0.0",
"@nextcloud/calendar-availability-vue": "^2.0.1",
"@nextcloud/capabilities": "^1.0.4",
"@nextcloud/dialogs": "^5.1.0",
"@nextcloud/dialogs": "^5.1.1",
"@nextcloud/event-bus": "^3.1.0",
"@nextcloud/files": "^3.1.0",
"@nextcloud/initial-state": "^2.0.0",
Expand Down

0 comments on commit 66ff3d1

Please sign in to comment.