fix(files): hide download action in link shares for newly created folders

Creating a new folder from within an editable public link share with the
hide-download option set would wrongfully show the "Download" action for a
newly created folder.  This action remained visible until the page was
reloaded.

This only affected the "New Folder" action, folders uploaded directly do not
show this action at all in this case.

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
pull/62459/head
Jyrki Gadinger 4 weeks ago
parent 0417403bf5
commit 535c9bb184
  1. 1
      apps/files/src/newMenu/newFolder.ts

@ -49,6 +49,7 @@ export const entry: NewMenuEntry = {
'mount-type': context.attributes?.['mount-type'],
'owner-id': context.attributes?.['owner-id'],
'owner-display-name': context.attributes?.['owner-display-name'],
'hide-download': context.attributes?.['hide-download'],
},
})

Loading…
Cancel
Save