diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-27 19:07:09 +0330 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-27 19:07:09 +0330 |
commit | bbfe2fb821f00713f46fd896a41dfc62cc02c31a (patch) | |
tree | 22923a6d3a78f7f1d780e958ff118a669c6c8c63 /apps/files_sharing/src/components/SharePermissionsEditor.vue | |
parent | 8c64ccae01ef3143a47dcca0b7ddb115d601c2f1 (diff) | |
parent | 266436b76788d14e061bbe1f013bc052edc8041f (diff) | |
download | nextcloud-server-bbfe2fb821f00713f46fd896a41dfc62cc02c31a.tar.gz nextcloud-server-bbfe2fb821f00713f46fd896a41dfc62cc02c31a.zip |
Merge branch 'master' into replace_strpos_calls_in_dav_app
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'apps/files_sharing/src/components/SharePermissionsEditor.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharePermissionsEditor.vue | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/files_sharing/src/components/SharePermissionsEditor.vue b/apps/files_sharing/src/components/SharePermissionsEditor.vue index 41aec036baf..cc1a150ecc1 100644 --- a/apps/files_sharing/src/components/SharePermissionsEditor.vue +++ b/apps/files_sharing/src/components/SharePermissionsEditor.vue @@ -26,7 +26,6 @@ <!-- file --> <NcActionCheckbox v-if="!isFolder" :checked="shareHasPermissions(atomicPermissions.UPDATE)" - :disabled="saving" @update:checked="toggleSharePermissions(atomicPermissions.UPDATE)"> {{ t('files_sharing', 'Allow editing') }} </NcActionCheckbox> @@ -37,21 +36,18 @@ <NcActionRadio :checked="sharePermissionEqual(bundledPermissions.READ_ONLY)" :value="bundledPermissions.READ_ONLY" :name="randomFormName" - :disabled="saving" @change="setSharePermissions(bundledPermissions.READ_ONLY)"> {{ t('files_sharing', 'Read only') }} </NcActionRadio> <NcActionRadio :checked="sharePermissionEqual(bundledPermissions.UPLOAD_AND_UPDATE)" :value="bundledPermissions.UPLOAD_AND_UPDATE" - :disabled="saving" :name="randomFormName" @change="setSharePermissions(bundledPermissions.UPLOAD_AND_UPDATE)"> {{ t('files_sharing', 'Allow upload and editing') }} </NcActionRadio> <NcActionRadio :checked="sharePermissionEqual(bundledPermissions.FILE_DROP)" :value="bundledPermissions.FILE_DROP" - :disabled="saving" :name="randomFormName" class="sharing-entry__action--public-upload" @change="setSharePermissions(bundledPermissions.FILE_DROP)"> @@ -71,22 +67,22 @@ <!-- custom permissions --> <span v-else :class="{error: !sharePermissionsSetIsValid}"> <NcActionCheckbox :checked="shareHasPermissions(atomicPermissions.READ)" - :disabled="saving || !canToggleSharePermissions(atomicPermissions.READ)" + :disabled="!canToggleSharePermissions(atomicPermissions.READ)" @update:checked="toggleSharePermissions(atomicPermissions.READ)"> {{ t('files_sharing', 'Read') }} </NcActionCheckbox> <NcActionCheckbox :checked="shareHasPermissions(atomicPermissions.CREATE)" - :disabled="saving || !canToggleSharePermissions(atomicPermissions.CREATE)" + :disabled="!canToggleSharePermissions(atomicPermissions.CREATE)" @update:checked="toggleSharePermissions(atomicPermissions.CREATE)"> {{ t('files_sharing', 'Upload') }} </NcActionCheckbox> <NcActionCheckbox :checked="shareHasPermissions(atomicPermissions.UPDATE)" - :disabled="saving || !canToggleSharePermissions(atomicPermissions.UPDATE)" + :disabled="!canToggleSharePermissions(atomicPermissions.UPDATE)" @update:checked="toggleSharePermissions(atomicPermissions.UPDATE)"> {{ t('files_sharing', 'Edit') }} </NcActionCheckbox> <NcActionCheckbox :checked="shareHasPermissions(atomicPermissions.DELETE)" - :disabled="saving || !canToggleSharePermissions(atomicPermissions.DELETE)" + :disabled="!canToggleSharePermissions(atomicPermissions.DELETE)" @update:checked="toggleSharePermissions(atomicPermissions.DELETE)"> {{ t('files_sharing', 'Delete') }} </NcActionCheckbox> |