|
109 | 109 | {{ t('files_sharing', 'Password expired') }} |
110 | 110 | </span> |
111 | 111 | </template> |
| 112 | + <NcCheckboxRadioSwitch v-if="canTogglePasswordProtectedByTalkAvailable" |
| 113 | + :checked.sync="isPasswordProtectedByTalk" |
| 114 | + @update:checked="onPasswordProtectedByTalkChange"> |
| 115 | + {{ t('files_sharing', 'Video verification') }} |
| 116 | + </NcCheckboxRadioSwitch> |
112 | 117 | <NcCheckboxRadioSwitch :checked.sync="hasExpirationDate" :disabled="isExpiryDateEnforced"> |
113 | 118 | {{ isExpiryDateEnforced |
114 | 119 | ? t('files_sharing', 'Expiration date (enforced)') |
|
129 | 134 | @update:checked="queueUpdate('hideDownload')"> |
130 | 135 | {{ t('files_sharing', 'Hide download') }} |
131 | 136 | </NcCheckboxRadioSwitch> |
132 | | - <NcCheckboxRadioSwitch v-if="canTogglePasswordProtectedByTalkAvailable" |
133 | | - :checked.sync="isPasswordProtectedByTalk" |
134 | | - @update:checked="onPasswordProtectedByTalkChange"> |
135 | | - {{ t('files_sharing', 'Video verification') }} |
136 | | - </NcCheckboxRadioSwitch> |
137 | 137 | <NcCheckboxRadioSwitch v-if="!isPublicShare" :disabled="!canSetDownload" :checked.sync="canDownload"> |
138 | 138 | {{ t('files_sharing', 'Allow download') }} |
139 | 139 | </NcCheckboxRadioSwitch> |
@@ -599,8 +599,8 @@ export default { |
599 | 599 | return false |
600 | 600 | } |
601 | 601 |
|
602 | | - // Anything else should be fine |
603 | | - return true |
| 602 | + // Is Talk enabled? |
| 603 | + return OC.appswebroots.spreed !== undefined |
604 | 604 | }, |
605 | 605 | canChangeHideDownload() { |
606 | 606 | const hasDisabledDownload = (shareAttribute) => shareAttribute.key === 'download' && shareAttribute.scope === 'permissions' && shareAttribute.enabled === false |
|
0 commit comments