mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-10 06:06:24 +08:00
Add snapshot error message below task status [SCI-6614] (#4009)
This commit is contained in:
parent
433d69c10a
commit
2d811cdc4c
3 changed files with 27 additions and 0 deletions
|
|
@ -517,6 +517,16 @@
|
|||
@include font-small;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.status-transition-error {
|
||||
@include font-small;
|
||||
color: $brand-danger;
|
||||
margin-top: .5em;
|
||||
|
||||
.fas {
|
||||
margin-right: .5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,3 +59,17 @@
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<% if my_module.last_transition_error %>
|
||||
<div class="status-transition-error">
|
||||
<i class="fas fa-exclamation-triangle"></i>
|
||||
<% case my_module.last_transition_error["type"] %>
|
||||
<% when "repository_snapshot" %>
|
||||
<%= t(
|
||||
"my_modules.status_error.repository_snapshot",
|
||||
repository: Repository.find(my_module.last_transition_error["repository_id"]).name
|
||||
) %>
|
||||
<% else %>
|
||||
<%= t("my_modules.status_error.general") %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -1058,6 +1058,9 @@ en:
|
|||
title_html: The inventory <b>%{inventory_name}</b> is no longer shared with your team.
|
||||
body_html: This inventory has been unshared with your team by the inventory’s owner. To view the item/s that are assigned to your task/s contact the <b>%{team_name}</b> team administrator <b>%{admin_name}</b> (<b>%{admin_email}</b>).
|
||||
open_mobile_app: "Open mobile app"
|
||||
status_error:
|
||||
general: "Status transition failed"
|
||||
repository_snapshot: "Snapshot failed in %{repository}"
|
||||
experiments:
|
||||
id: "ID"
|
||||
experiment_id: "Experiment ID"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue