@@ -486,23 +486,22 @@ export default {
486486 pendingDefaultExpirationDate () {
487487 return (this .config .defaultExpirationDate instanceof Date || ! isNaN (new Date (this .config .defaultExpirationDate ).getTime ())) && this .isPendingShare
488488 },
489-
490489 isPendingShare () {
491490 return !! (this .share && ! this .share .id )
492491 },
493- sharePolicyHasRequiredProperties () {
492+ sharePolicyHasEnforcedProperties () {
494493 return this .config .enforcePasswordForPublicLink || this .config .isDefaultExpireDateEnforced
495494 },
496495
497- requiredPropertiesMissing () {
496+ enforcedPropertiesMissing () {
498497 // Ensure share exist and the share policy has required properties
499- if (! this .sharePolicyHasRequiredProperties ) {
498+ if (! this .sharePolicyHasEnforcedProperties ) {
500499 return false
501500 }
502501
503502 if (! this .share ) {
504503 // if no share, we can't tell if properties are missing or not so we assume properties are missing
505- return true
504+ return true
506505 }
507506
508507 // If share has ID, then this is an incoming link share created from the existing link share
@@ -604,7 +603,7 @@ export default {
604603 * @param {boolean} shareReviewComplete if the share was reviewed
605604 * @return {boolean}
606605 */
607- shareRequiresReview (shareReviewComplete ) {
606+ shareRequiresReview (shareReviewComplete ) {
608607 // If a user clicks 'Create share' it means they have reviewed the share
609608 if (shareReviewComplete) {
610609 return false
@@ -615,7 +614,7 @@ export default {
615614 * Create a new share link and append it to the list
616615 * @param {boolean} shareReviewComplete if the share was reviewed
617616 */
618- async onNewLinkShare (shareReviewComplete = false ) {
617+ async onNewLinkShare (shareReviewComplete = false ) {
619618 this .logger .debug (' onNewLinkShare called (with this.share)' , this .share )
620619 // do not run again if already loading
621620 if (this .loading ) {
@@ -631,7 +630,7 @@ export default {
631630 shareDefaults .expiration = this .formatDateToString (this .config .defaultExpirationDate )
632631 }
633632
634- this .logger .debug (' Missing required properties?' , this .requiredPropertiesMissing )
633+ this .logger .debug (' Missing required properties?' , this .enforcedPropertiesMissing )
635634 // Do not push yet if we need a password or an expiration date: show pending menu
636635 // A share would require a review for example is default expiration date is set but not enforced, this allows
637636 // the user to review the share and remove the expiration date if they don't want it
0 commit comments