@ -340,20 +340,30 @@ export default {
switch ( this . share . type ) {
case this . SHARE _TYPES . SHARE _TYPE _USER :
return t ( 'files_sharing' , 'Share with {userName}' , { userName : this . share . shareWithDisplayName } )
case this . SHARE _TYPES . SHARE _TYPE _EMAIL :
return t ( 'files_sharing' , 'Share with email {email}' , { email : this . share . shareWith } )
case this . SHARE _TYPES . SHARE _TYPE _LINK :
return t ( 'files_sharing' , 'Share link' )
case this . SHARE _TYPES . SHARE _TYPE _GROUP :
return t ( 'files_sharing' , 'Share with group' )
case this . SHARE _TYPES . SHARE _TYPE _ROOM :
return t ( 'files_sharing' , 'Share in conversation' )
case this . SHARE _TYPES . SHARE _TYPE _REMOTE :
return t ( 'files_sharing' , 'Share with remote' )
case this . SHARE _TYPES . SHARE _TYPE _REMOTE : {
const [ user , server ] = this . share . shareWith . split ( '@' )
return t ( 'files_sharing' , 'Share with {user} on remote server {server}' , { user , server } )
}
case this . SHARE _TYPES . SHARE _TYPE _REMOTE _GROUP :
return t ( 'files_sharing' , 'Share with remote group' )
case this . SHARE _TYPES . SHARE _TYPE _GUEST :
return t ( 'files_sharing' , 'Share with guest' )
default :
return t ( 'files_sharing' , 'Share with' )
default : {
if ( this . share . id ) {
/ / S h a r e a l r e a d y e x i s t s
return t ( 'files_sharing' , 'Update share' )
} else {
return t ( 'files_sharing' , 'Create share' )
}
}
}
} ,
/ * *