From 2d811cdc4cbcd8963e409b6d4941ad37f463b413 Mon Sep 17 00:00:00 2001 From: artoscinote <85488244+artoscinote@users.noreply.github.com> Date: Tue, 12 Apr 2022 13:28:26 +0200 Subject: [PATCH] Add snapshot error message below task status [SCI-6614] (#4009) --- .../stylesheets/my_modules/protocols/index.scss | 10 ++++++++++ .../status_flow/_task_flow_button.html.erb | 14 ++++++++++++++ config/locales/en.yml | 3 +++ 3 files changed, 27 insertions(+) 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 %> +