Skip to content

Commit 6842214

Browse files
Merge pull request #62319 from nextcloud/backport/62254/stable33
[stable33] fix(files): properly handle folders without permissions
2 parents 6de8760 + 66045eb commit 6842214

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

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) {

dist/files-init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)