aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornfebe <fenn25.fn@gmail.com>2024-12-11 11:55:30 +0100
committernfebe <fenn25.fn@gmail.com>2024-12-11 21:52:11 +0100
commit996fd0dc8cbd94a1c6f8e1039457efb9a116d3a4 (patch)
treecb96e1873940c85e8336f9bbd1403880788de6a2
parentc4605261d9bc50a564c6db49fdc7deacf816e0c6 (diff)
downloadnextcloud-server-996fd0dc8cbd94a1c6f8e1039457efb9a116d3a4.tar.gz
nextcloud-server-996fd0dc8cbd94a1c6f8e1039457efb9a116d3a4.zip
fix(files_sharing): Correct property enforced property names
Signed-off-by: nfebe <fenn25.fn@gmail.com>
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue13
1 files changed, 6 insertions, 7 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index 3be1bce7063..406514720b7 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -491,17 +491,16 @@ export default {
pendingDefaultExpirationDate() {
return (this.config.defaultExpirationDate instanceof Date || !isNaN(new Date(this.config.defaultExpirationDate).getTime())) && this.isPendingShare
},
-
isPendingShare() {
return !!(this.share && !this.share.id)
},
- sharePolicyHasRequiredProperties() {
+ sharePolicyHasEnforcedProperties() {
return this.config.enforcePasswordForPublicLink || this.config.isDefaultExpireDateEnforced
},
- requiredPropertiesMissing() {
+ enforcedPropertiesMissing() {
// Ensure share exist and the share policy has required properties
- if (!this.sharePolicyHasRequiredProperties) {
+ if (!this.sharePolicyHasEnforcedProperties) {
return false
}
@@ -603,7 +602,7 @@ export default {
* @param {boolean} shareReviewComplete if the share was reviewed
* @return {boolean}
*/
- shareRequiresReview(shareReviewComplete) {
+ shareRequiresReview(shareReviewComplete) {
// If a user clicks 'Create share' it means they have reviewed the share
if (shareReviewComplete) {
return false
@@ -614,7 +613,7 @@ export default {
* Create a new share link and append it to the list
* @param {boolean} shareReviewComplete if the share was reviewed
*/
- async onNewLinkShare(shareReviewComplete = false) {
+ async onNewLinkShare(shareReviewComplete = false) {
this.logger.debug('onNewLinkShare called (with this.share)', this.share)
// do not run again if already loading
if (this.loading) {
@@ -630,7 +629,7 @@ export default {
shareDefaults.expiration = this.formatDateToString(this.config.defaultExpirationDate)
}
- this.logger.debug('Missing required properties?', this.requiredPropertiesMissing)
+ this.logger.debug('Missing required properties?', this.enforcedPropertiesMissing)
// Do not push yet if we need a password or an expiration date: show pending menu
// A share would require a review for example is default expiration date is set but not enforced, this allows
// the user to review the share and remove the expiration date if they don't want it