diff options
author | Joas Schilling <coding@schilljs.com> | 2024-02-12 10:28:34 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-02-13 10:06:32 +0000 |
commit | 2b3cefc98395025355def216e8261ddaf75a3835 (patch) | |
tree | f7687b62b97799383a9b9a266a944a4ab0bcef80 | |
parent | 79f2eb68e6faf598f7defcc74c24f891ad4d4f84 (diff) | |
download | nextcloud-server-2b3cefc98395025355def216e8261ddaf75a3835.tar.gz nextcloud-server-2b3cefc98395025355def216e8261ddaf75a3835.zip |
fix(sharing): Move video verification option to password and hide without Talk
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | apps/files_sharing/src/views/SharingDetailsTab.vue | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue index 8027faa6d6d..5214582153c 100644 --- a/apps/files_sharing/src/views/SharingDetailsTab.vue +++ b/apps/files_sharing/src/views/SharingDetailsTab.vue @@ -120,6 +120,11 @@ {{ t('files_sharing', 'Password expired') }} </span> </template> + <NcCheckboxRadioSwitch v-if="canTogglePasswordProtectedByTalkAvailable" + :checked.sync="isPasswordProtectedByTalk" + @update:checked="onPasswordProtectedByTalkChange"> + {{ t('files_sharing', 'Video verification') }} + </NcCheckboxRadioSwitch> <NcCheckboxRadioSwitch :checked.sync="hasExpirationDate" :disabled="isExpiryDateEnforced"> {{ isExpiryDateEnforced ? t('files_sharing', 'Expiration date (enforced)') @@ -140,11 +145,6 @@ @update:checked="queueUpdate('hideDownload')"> {{ t('files_sharing', 'Hide download') }} </NcCheckboxRadioSwitch> - <NcCheckboxRadioSwitch v-if="canTogglePasswordProtectedByTalkAvailable" - :checked.sync="isPasswordProtectedByTalk" - @update:checked="onPasswordProtectedByTalkChange"> - {{ t('files_sharing', 'Video verification') }} - </NcCheckboxRadioSwitch> <NcCheckboxRadioSwitch v-if="!isPublicShare" :disabled="!canSetDownload" :checked.sync="canDownload"> {{ t('files_sharing', 'Allow download') }} </NcCheckboxRadioSwitch> @@ -618,8 +618,8 @@ export default { return false } - // Anything else should be fine - return true + // Is Talk enabled? + return OC.appswebroots.spreed !== undefined }, canChangeHideDownload() { const hasDisabledDownload = (shareAttribute) => shareAttribute.key === 'download' && shareAttribute.scope === 'permissions' && shareAttribute.enabled === false |