diff --git a/app/assets/stylesheets/my_modules/protocols/index.scss b/app/assets/stylesheets/my_modules/protocols/index.scss
index ee9cdf08e..a12560198 100644
--- a/app/assets/stylesheets/my_modules/protocols/index.scss
+++ b/app/assets/stylesheets/my_modules/protocols/index.scss
@@ -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;
+ }
+ }
}
}
diff --git a/app/views/my_modules/status_flow/_task_flow_button.html.erb b/app/views/my_modules/status_flow/_task_flow_button.html.erb
index ecca30075..e999289a8 100644
--- a/app/views/my_modules/status_flow/_task_flow_button.html.erb
+++ b/app/views/my_modules/status_flow/_task_flow_button.html.erb
@@ -59,3 +59,17 @@
+<% if my_module.last_transition_error %>
+
+
+ <% 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 %>
+
+<% end %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 2ea5191db..424cb6300 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -1058,6 +1058,9 @@ en:
title_html: The inventory %{inventory_name} 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 %{team_name} team administrator %{admin_name} (%{admin_email}).
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"