Skip to content
Prev Previous commit
Next Next commit
disable hide download on file drop option
Signed-off-by: Yogesh Shejwadkar <[email protected]>
  • Loading branch information
TSI-yogeshshejwadkar committed Feb 9, 2022
commit bedcecf36559790b305362c5149456a22105f60f
5 changes: 4 additions & 1 deletion apps/files_sharing/src/components/SharingPermissions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
{{ t('files_sharing', 'Advanced settings') }}
</label>
<ActionCheckbox :checked.sync="share.hideDownload"
:disabled="saving"
:disabled="saving || sharePermissions === publicUploadWValue"
@change="addHideDownload">
{{ t('files_sharing', 'Hide download') }}
</ActionCheckbox>
Expand Down Expand Up @@ -422,6 +422,9 @@ export default {
let permissions = 0
if (this.isExteranlShare) {
permissions = parseInt(event.target.value, 10)
if (permissions === OC.PERMISSION_CREATE) {
this.share.hideDownload = false
}
this.share.permissions = permissions
} else {
permissions = parseInt(event.target.value, 10)
Expand Down