File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -575,7 +575,7 @@ export default {
575575 * @return {Array}
576576 */
577577 externalLinkActions () {
578- const filterValidAction = (action ) => (action .shareType .includes (ShareTypes . SHARE_TYPE_LINK ) || action .shareType .includes (ShareTypes . SHARE_TYPE_EMAIL )) && ! action .advanced
578+ const filterValidAction = (action ) => (action .shareType .includes (ShareType . Link ) || action .shareType .includes (ShareType . Email )) && ! action .advanced
579579 // filter only the registered actions for said link
580580 return this .ExternalShareActions .actions
581581 .filter (filterValidAction)
@@ -621,7 +621,7 @@ export default {
621621 }
622622
623623 const shareDefaults = {
624- share_type: ShareTypes . SHARE_TYPE_LINK ,
624+ share_type: ShareType . Link ,
625625 }
626626 if (this .config .isDefaultExpireDateEnforced ) {
627627 // default is empty string if not set
@@ -709,7 +709,7 @@ export default {
709709 const path = (this .fileInfo .path + ' /' + this .fileInfo .name ).replace (' //' , ' /' )
710710 const options = {
711711 path,
712- shareType: ShareTypes . SHARE_TYPE_LINK ,
712+ shareType: ShareType . Link ,
713713 password: share .password ,
714714 expireDate: share .expireDate ,
715715 attributes: JSON .stringify (this .fileInfo .shareAttributes ),
Original file line number Diff line number Diff line change @@ -341,9 +341,9 @@ export default {
341341 switch (this .share .type ) {
342342 case ShareType .User :
343343 return t (' files_sharing' , ' Share with {userName}' , { userName: this .share .shareWithDisplayName })
344- case this . SHARE_TYPES . SHARE_TYPE_EMAIL :
344+ case ShareType . Email :
345345 return t (' files_sharing' , ' Share with email {email}' , { email: this .share .shareWith })
346- case this . SHARE_TYPES . SHARE_TYPE_LINK :
346+ case ShareType . Link :
347347 return t (' files_sharing' , ' Share link' )
348348 case ShareType .Group :
349349 return t (' files_sharing' , ' Share with group' )
You can’t perform that action at this time.
0 commit comments