Skip to content

Commit 763c48a

Browse files
authored
Merge pull request #62254 from nextcloud/fix/copy-move
fix(files): properly handle folders without permissions
2 parents 89adeb7 + 0d000c0 commit 763c48a

685 files changed

Lines changed: 3185 additions & 3229 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/files/src/actions/moveOrCopyAction.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ async function openFilePickerForAction(
299299
if (action === MoveCopyAction.COPY || action === MoveCopyAction.MOVE_OR_COPY) {
300300
buttons.push({
301301
label: target ? t('files', 'Copy to {target}', { target }, { escape: false, sanitize: false }) : t('files', 'Copy'),
302+
disabled: selection.length === 0,
302303
variant: 'primary',
303304
icon: CopyIconSvg,
304305
async callback(destination) {
@@ -329,6 +330,7 @@ async function openFilePickerForAction(
329330
if (action === MoveCopyAction.MOVE || action === MoveCopyAction.MOVE_OR_COPY) {
330331
buttons.push({
331332
label: target ? t('files', 'Move to {target}', { target }, { escape: false, sanitize: false }) : t('files', 'Move'),
333+
disabled: selection.length === 0,
332334
variant: action === MoveCopyAction.MOVE ? 'primary' : 'secondary',
333335
icon: FolderMoveSvg,
334336
async callback(destination) {

0 commit comments

Comments
 (0)