+ const link = (() => {
+ switch (this.downloadType) {
+ case 'direct': {
+ return file.fileDownloadUrl
+ }
+ case 'torrent': {
+ return file.torrentDownloadUrl
+ }
+ case 'magnet': {
+ return file.magnetUri
+ }
+ }
+ })()
+
+ return link
+ }
+
+ activateCopiedMessage () {
+ this.notificationsService.success(this.i18n('Success'), this.i18n('Copied'))