This repository was archived by the owner on Nov 25, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
core/src/plugins/action.share/res/react/model Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 891
891
s = MessageHash [ "share_center.42" ] ;
892
892
if ( s ) s = s . replace ( "%s" , ApplicationTitle ) ;
893
893
link = this . getPublicLink ( linkId ) ;
894
- message = s + "\n\n " + "<a href='" + link + "'>" + link + "</a>" ;
894
+ let additionalData = '' ;
895
+ let password = this . hasHiddenPassword ( linkId ) ;
896
+ if ( password ) {
897
+ additionalData += '\n - ' + MessageHash [ 'share_center.170' ] + '.' ;
898
+ }
899
+ let dlLimit = this . getExpirationFor ( linkId , 'downloads' ) ;
900
+ if ( dlLimit ) {
901
+ additionalData += '\n - ' + MessageHash [ 'share_center.22' ] + ': ' + dlLimit ;
902
+ }
903
+ let expirationDate = this . getExpirationFor ( linkId , 'days' ) ;
904
+ if ( expirationDate ) {
905
+ let today = new Date ( ) ;
906
+ let expDate = new Date ( ) ;
907
+ expDate . setDate ( today . getDate ( ) + parseInt ( expirationDate ) ) ;
908
+ additionalData += '\n - ' + MessageHash [ 'share_center.21' ] + ': ' + expDate . toLocaleDateString ( ) ;
909
+ }
910
+ message = s + additionalData + "\n\n " + "<a href='" + link + "'>" + link + "</a>" ;
895
911
} else {
896
912
if ( ! this . _data [ 'repository_url' ] ) {
897
913
throw new Error ( MessageHash [ 'share_center.230' ] ) ;
You can’t perform that action at this time.
0 commit comments