| @@ -1263,6 +1263,9 @@ scrolled_logs_top_pls_retry = You have scrolled to the top of the log, please tr | |||||
| scrolled_logs_bottom = You have scrolled to the bottom of the log | scrolled_logs_bottom = You have scrolled to the bottom of the log | ||||
| scrolled_logs_bottom_pls_retry = You have scrolled to the bottom of the log, please try again later! | scrolled_logs_bottom_pls_retry = You have scrolled to the bottom of the log, please try again later! | ||||
| canceled_operation = You have canceled the operation | |||||
| successfully_deleted = Successfully deleted | |||||
| debug_task_not_created = Debug task has not been created | debug_task_not_created = Debug task has not been created | ||||
| train_task_not_created = Train task has not been created | train_task_not_created = Train task has not been created | ||||
| inference_job_not_created = Inference job has not been created | inference_job_not_created = Inference job has not been created | ||||
| @@ -1275,6 +1275,9 @@ scrolled_logs_top_pls_retry = 您已翻阅至日志顶部,请稍后再试! | |||||
| scrolled_logs_bottom = 您已翻阅至日志底部 | scrolled_logs_bottom = 您已翻阅至日志底部 | ||||
| scrolled_logs_bottom_pls_retry = 您已翻阅至日志底部,请稍后再试! | scrolled_logs_bottom_pls_retry = 您已翻阅至日志底部,请稍后再试! | ||||
| canceled_operation = 您已取消操作 | |||||
| successfully_deleted = 删除成功 | |||||
| debug_task_not_created = 未创建过调试任务 | debug_task_not_created = 未创建过调试任务 | ||||
| train_task_not_created = 未创建过训练任务 | train_task_not_created = 未创建过训练任务 | ||||
| inference_job_not_created = 未创建过推理任务 | inference_job_not_created = 未创建过推理任务 | ||||
| @@ -107,6 +107,7 @@ | |||||
| <script> | <script> | ||||
| // 删除时用户确认 | // 删除时用户确认 | ||||
| var lang_canceled_operation = {{.i18n.Tr "repo.canceled_operation"}}; | |||||
| function assertDelete(obj) { | function assertDelete(obj) { | ||||
| if (obj.style.color == "rgb(204, 204, 204)") { | if (obj.style.color == "rgb(204, 204, 204)") { | ||||
| return | return | ||||
| @@ -124,7 +125,7 @@ | |||||
| }, | }, | ||||
| onHidden: function() { | onHidden: function() { | ||||
| if (flag == false) { | if (flag == false) { | ||||
| $('.alert').html('您已取消操作').removeClass('alert-success').addClass('alert-danger').show().delay(1500).fadeOut(); | |||||
| $('.alert').html(lang_canceled_operation).removeClass('alert-success').addClass('alert-danger').show().delay(1500).fadeOut(); | |||||
| } | } | ||||
| } | } | ||||
| }) | }) | ||||
| @@ -267,7 +267,7 @@ export default async function initCloudrain() { | |||||
| onHidden: function () { | onHidden: function () { | ||||
| if (flag == false) { | if (flag == false) { | ||||
| $(".alert") | $(".alert") | ||||
| .html("您已取消操作") | |||||
| .html(i18n.canceled_operation) | |||||
| .removeClass("alert-success") | .removeClass("alert-success") | ||||
| .addClass("alert-danger") | .addClass("alert-danger") | ||||
| .show() | .show() | ||||