Browse Source

fix issue

tags/v1.22.12.1^2
zhoupzh 3 years ago
parent
commit
dda4052090
5 changed files with 13 additions and 5 deletions
  1. +1
    -1
      templates/repo/cloudbrain/new.tmpl
  2. +1
    -1
      templates/repo/grampus/notebook/gpu/new.tmpl
  3. +1
    -1
      templates/repo/grampus/notebook/npu/new.tmpl
  4. +1
    -1
      templates/repo/modelarts/notebook/new.tmpl
  5. +9
    -1
      web_src/js/features/cloudrbanin.js

+ 1
- 1
templates/repo/cloudbrain/new.tmpl View File

@@ -31,7 +31,7 @@
<p></p>
</div>
<h4 class="ui top attached header">
{{.i18n.Tr "repo.modelarts.train_job.new"}}
{{.i18n.Tr "repo.modelarts.train_job.new_debug"}}
</h4>
{{template "custom/alert_cb" .}}
<div class="ui attached segment">


+ 1
- 1
templates/repo/grampus/notebook/gpu/new.tmpl View File

@@ -13,7 +13,7 @@
<p></p>
</div>
<h4 class="ui top attached header">
{{.i18n.Tr "repo.modelarts.train_job.new"}}
{{.i18n.Tr "repo.modelarts.train_job.new_debug"}}
</h4>
{{template "custom/alert_cb" .}}
<div class="ui attached segment">


+ 1
- 1
templates/repo/grampus/notebook/npu/new.tmpl View File

@@ -11,7 +11,7 @@
<p></p>
</div>
<h4 class="ui top attached header">
{{.i18n.Tr "repo.modelarts.train_job.new"}}
{{.i18n.Tr "repo.modelarts.train_job.new_debug"}}
</h4>
{{template "custom/alert_cb" .}}
<div class="ui attached segment">


+ 1
- 1
templates/repo/modelarts/notebook/new.tmpl View File

@@ -13,7 +13,7 @@
</div>
{{template "custom/alert_cb" .}}
<h4 class="ui top attached header">
{{.i18n.Tr "repo.modelarts.train_job.new"}}
{{.i18n.Tr "repo.modelarts.train_job.new_debug"}}
</h4>
<div class="ui attached segment">
<form class="ui form" id="form_id" action="{{.Link}}" method="post">


+ 9
- 1
web_src/js/features/cloudrbanin.js View File

@@ -456,8 +456,16 @@ export default async function initCloudrain() {
.text(debug_button)
.css("margin", "0 1rem");
}
} else {
} else if (res.result_code == "-2") {
$(".ui.modal.debug-again-alert").modal("show");
} else {
$(".alert")
.html(res.error_msg)
.removeClass("alert-success")
.addClass("alert-danger")
.show()
.delay(2000)
.fadeOut();
}
},
error: function (res) {


Loading…
Cancel
Save