Skip to content

Commit c39d830

Browse files
nfebebackportbot[bot]
authored andcommitted
fix(files_sharing): Correct property enforced property names
Signed-off-by: nfebe <fenn25.fn@gmail.com> [skip ci]
1 parent c460526 commit c39d830

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

apps/files_sharing/src/components/SharingEntryLink.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -491,17 +491,16 @@ export default {
491491
pendingDefaultExpirationDate() {
492492
return (this.config.defaultExpirationDate instanceof Date || !isNaN(new Date(this.config.defaultExpirationDate).getTime())) && this.isPendingShare
493493
},
494-
495494
isPendingShare() {
496495
return !!(this.share && !this.share.id)
497496
},
498-
sharePolicyHasRequiredProperties() {
497+
sharePolicyHasEnforcedProperties() {
499498
return this.config.enforcePasswordForPublicLink || this.config.isDefaultExpireDateEnforced
500499
},
501500
502-
requiredPropertiesMissing() {
501+
enforcedPropertiesMissing() {
503502
// Ensure share exist and the share policy has required properties
504-
if (!this.sharePolicyHasRequiredProperties) {
503+
if (!this.sharePolicyHasEnforcedProperties) {
505504
return false
506505
}
507506
@@ -603,7 +602,7 @@ export default {
603602
* @param {boolean} shareReviewComplete if the share was reviewed
604603
* @return {boolean}
605604
*/
606-
shareRequiresReview(shareReviewComplete) {
605+
shareRequiresReview(shareReviewComplete) {
607606
// If a user clicks 'Create share' it means they have reviewed the share
608607
if (shareReviewComplete) {
609608
return false
@@ -614,7 +613,7 @@ export default {
614613
* Create a new share link and append it to the list
615614
* @param {boolean} shareReviewComplete if the share was reviewed
616615
*/
617-
async onNewLinkShare(shareReviewComplete = false) {
616+
async onNewLinkShare(shareReviewComplete = false) {
618617
this.logger.debug('onNewLinkShare called (with this.share)', this.share)
619618
// do not run again if already loading
620619
if (this.loading) {
@@ -630,7 +629,7 @@ export default {
630629
shareDefaults.expiration = this.formatDateToString(this.config.defaultExpirationDate)
631630
}
632631
633-
this.logger.debug('Missing required properties?', this.requiredPropertiesMissing)
632+
this.logger.debug('Missing required properties?', this.enforcedPropertiesMissing)
634633
// Do not push yet if we need a password or an expiration date: show pending menu
635634
// A share would require a review for example is default expiration date is set but not enforced, this allows
636635
// the user to review the share and remove the expiration date if they don't want it

0 commit comments

Comments
 (0)