diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index 5231748f..66f5e30a 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -1615,7 +1615,7 @@ INVITE_MAIL_SEND_FAILED: 'Invitation mail send failed (SERVER)', EMAIL_ADDRESS_IS_NOT_ALLOW: 'The domain of this email address is not allowable from server', INFO_HASH_IS_EMPTY: 'Info hash field of torrent file is empty', - INFO_HASH_ALREADY_EXISTS: 'This info hash value is already exists', + INFO_HASH_ALREADY_EXISTS: 'This info hash value is already exists, {{hash}}', UPLOAD_ACCESS_DENY: 'System only accepts resources group to upload torrents', READ_TORRENT_FILE_FAILD: 'The torrent file parsing error. Please check your torrent file to check if some of the necessary information is missing', MOVE_TORRENT_FILE_ERROR: 'The torrent file was moved incorrectly. Please do not repeat the submit operation quickly or the uploaded torrent file is missing.', diff --git a/modules/core/client/app/trans-string-zh-tw.js b/modules/core/client/app/trans-string-zh-tw.js index 96bcf3d6..c0c7d9db 100644 --- a/modules/core/client/app/trans-string-zh-tw.js +++ b/modules/core/client/app/trans-string-zh-tw.js @@ -1606,7 +1606,7 @@ INVITE_MAIL_SEND_FAILED: '邀請郵件傳送失敗(SERVER)', EMAIL_ADDRESS_IS_NOT_ALLOW: '該郵件地址不允許被邀請或註冊', INFO_HASH_IS_EMPTY: 'Info hash 欄位值不能為空', - INFO_HASH_ALREADY_EXISTS: '該 info hash 值已經存在,不能重複提交', + INFO_HASH_ALREADY_EXISTS: '該 info hash 值已經存在,不能重複提交, {{hash}}', UPLOAD_ACCESS_DENY: '當前系統只接受資源製作小組上傳種子', READ_TORRENT_FILE_FAILD: '種子檔案解析錯誤,請檢查您的種子檔案,看是否缺少某些必要資訊', MOVE_TORRENT_FILE_ERROR: '種子檔案移動錯誤,請不要快速重複進行提交操作或者上傳的種子檔案已丟失' diff --git a/modules/core/client/app/trans-string-zh.js b/modules/core/client/app/trans-string-zh.js index 7f69660c..df7218cc 100644 --- a/modules/core/client/app/trans-string-zh.js +++ b/modules/core/client/app/trans-string-zh.js @@ -1615,7 +1615,7 @@ INVITE_MAIL_SEND_FAILED: '邀请邮件发送失败(SERVER)', EMAIL_ADDRESS_IS_NOT_ALLOW: '该邮件地址不允许被邀请或注册', INFO_HASH_IS_EMPTY: 'Info hash 字段值不能为空', - INFO_HASH_ALREADY_EXISTS: '该 info hash 值已经存在,不能重复提交', + INFO_HASH_ALREADY_EXISTS: '该 info hash 值已经存在,不能重复提交, {{hash}}', UPLOAD_ACCESS_DENY: '当前系统只接受资源制作小组上传种子', READ_TORRENT_FILE_FAILD: '种子文件解析错误,请检查您的种子文件,看是否缺少某些必要信息', MOVE_TORRENT_FILE_ERROR: '种子文件移动错误,请不要快速重复进行提交操作或者上传的种子文件已丢失', diff --git a/modules/core/client/less/mt.less b/modules/core/client/less/mt.less index f3dd281a..ea5eff62 100644 --- a/modules/core/client/less/mt.less +++ b/modules/core/client/less/mt.less @@ -14,6 +14,10 @@ body { background-color: @mt-body-background-color; } +.ui-notification{ + width: 400px; +} + .social-list { img { border-radius: 12px; diff --git a/modules/torrents/client/controllers/uploads.client.controller.js b/modules/torrents/client/controllers/uploads.client.controller.js index 4110e4af..d8141931 100644 --- a/modules/torrents/client/controllers/uploads.client.controller.js +++ b/modules/torrents/client/controllers/uploads.client.controller.js @@ -193,10 +193,12 @@ vm.successfully = false; vm.tFile = undefined; // Show error message - Notification.error({ - message: response.data, - title: ' ' + $translate.instant('TORRENTS_UPLOAD_FAILED') - }); + if (response.data.params) { + response.data.message = $translate.instant(response.data.message, response.data.params); + } + console.log(response.data.message); + + NotifycationService.showErrorNotify(response.data.message, 'TORRENTS_UPLOAD_FAILED'); } /**