Update `@nextcloud/dialogs` to 5.1.1tags/v29.0.0beta1
@@ -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' | |||
@@ -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'))) | |||
} | |||
}) | |||
}) | |||
} |
@@ -0,0 +1,3 @@ | |||
/*! For license information please see 4720-4720.js.LICENSE.txt */ | |||
"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[4720],{84720:(e,n,c)=>{c.d(n,{FilePickerVue:()=>s});const s=(0,c(20144).defineAsyncComponent)((()=>Promise.all([c.e(7874),c.e(6512)]).then(c.bind(c,94378))))}}]); | |||
//# sourceMappingURL=4720-4720.js.map?v=bf813bc45f5afa044293 |
@@ -1 +1 @@ | |||
{"version":3,"file":"5076-5076.js?v=15b21454a9691213632e","mappings":";oIAsBA,MAAMA,GAAI,kCAAE,IAAM","sources":["webpack:///nextcloud/node_modules/@nextcloud/dialogs/dist/chunks/index-csK3cpe5.mjs"],"sourcesContent":["import { defineAsyncComponent as e } from \"vue\";\n/**\n * @copyright Copyright (c) 2023 Ferdinand Thiessen <opensource@fthiessen.de>\n *\n * @author Ferdinand Thiessen <opensource@fthiessen.de>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nconst i = e(() => import(\"./FilePicker-j5uGgoIq.mjs\"));\nexport {\n i as FilePickerVue\n};\n"],"names":["i"],"sourceRoot":""} | |||
{"version":3,"file":"4720-4720.js?v=bf813bc45f5afa044293","mappings":";oIAsBA,MAAMA,GAAI,kCAAE,IAAM","sources":["webpack:///nextcloud/node_modules/@nextcloud/dialogs/dist/chunks/index-1zThpkd0.mjs"],"sourcesContent":["import { defineAsyncComponent as e } from \"vue\";\n/**\n * @copyright Copyright (c) 2023 Ferdinand Thiessen <opensource@fthiessen.de>\n *\n * @author Ferdinand Thiessen <opensource@fthiessen.de>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\nconst i = e(() => import(\"./FilePicker-cOp1W5mL.mjs\"));\nexport {\n i as FilePickerVue\n};\n"],"names":["i"],"sourceRoot":""} |
@@ -1,3 +0,0 @@ | |||
/*! For license information please see 5076-5076.js.LICENSE.txt */ | |||
"use strict";(self.webpackChunknextcloud=self.webpackChunknextcloud||[]).push([[5076],{45076:(e,n,c)=>{c.d(n,{FilePickerVue:()=>s});const s=(0,c(20144).defineAsyncComponent)((()=>Promise.all([c.e(7874),c.e(1215)]).then(c.bind(c,544))))}}]); | |||
//# sourceMappingURL=5076-5076.js.map?v=15b21454a9691213632e |
@@ -18,7 +18,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", | |||
@@ -3816,9 +3816,9 @@ | |||
} | |||
}, | |||
"node_modules/@nextcloud/dialogs": { | |||
"version": "5.1.0", | |||
"resolved": "https://registry.npmjs.org/@nextcloud/dialogs/-/dialogs-5.1.0.tgz", | |||
"integrity": "sha512-SHoM9vasgzq4imnJjOROFVqJkr663ncsO8bRzgKdOpC6rC96wCEOID2+DXJmhq6tVpdHwsXjYNvBogWBwDaMJA==", | |||
"version": "5.1.1", | |||
"resolved": "https://registry.npmjs.org/@nextcloud/dialogs/-/dialogs-5.1.1.tgz", | |||
"integrity": "sha512-3jQdoI1Rw8eTt9bgIZYIkGGguwHYWhOMTMu+5QfX3FlvhI7Z086PKN1YSlLmudV9ZyXFuC5zp2o2FYjTvLcwQw==", | |||
"dependencies": { | |||
"@nextcloud/axios": "^2.4.0", | |||
"@nextcloud/event-bus": "^3.1.0", | |||
@@ -3828,7 +3828,7 @@ | |||
"@nextcloud/router": "^2.2.0", | |||
"@nextcloud/typings": "^1.7.0", | |||
"@types/toastify-js": "^1.12.3", | |||
"@vueuse/core": "^10.7.1", | |||
"@vueuse/core": "^10.7.2", | |||
"toastify-js": "^1.12.0", | |||
"vue-frag": "^1.4.3", | |||
"webdav": "^5.3.1" |
@@ -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", |