Commit 8a26021b authored by Alfredo Sumaran's avatar Alfredo Sumaran

Fix empty stage presentation

parent 6efe1531
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
}); });
newData.stages.forEach((item) => { newData.stages.forEach((item) => {
item.value = item.value || '- - -';
item.active = false; item.active = false;
item.component = `stage-${item.title.toLowerCase()}-component`; item.component = `stage-${item.title.toLowerCase()}-component`;
}); });
......
...@@ -246,6 +246,10 @@ ...@@ -246,6 +246,10 @@
.stage-name { .stage-name {
padding-left: 16px; padding-left: 16px;
} }
.stage-empty {
color: $gl-text-color-light;
}
} }
} }
......
...@@ -69,15 +69,19 @@ ...@@ -69,15 +69,19 @@
.stage-panel-body .stage-panel-body
%nav.stage-nav %nav.stage-nav
%ul %ul
%li.stage-nav-item{ ':class' => '{active: stage.active}', '@click' => 'selectStage(stage)', "v-for" => "stage in state.stages" } %li.stage-nav-item{ ':class' => '{ active: stage.active }', '@click' => 'selectStage(stage)', "v-for" => "stage in state.stages" }
.stage-name .stage-name
{{ stage.title }} {{ stage.title }}
.stage-median .stage-median
%template{ "v-if" => "stage.value" }
{{ stage.value }} {{ stage.value }}
%template{ "v-else" => true }
%span.stage-empty
No enough data
.section.stage-events .section.stage-events
%template{ "v-if" => "isLoadingStage" } %template{ "v-if" => "isLoadingStage" }
= icon("spinner spin", "v-show" => "isLoadingStage") = icon("spinner spin", "v-show" => "isLoadingStage")
%template{ "v-if" => "isEmptyStage" } %template{ "v-if" => "isEmptyStage && !isLoadingStage" }
= render partial: "empty_stage" = render partial: "empty_stage"
%template{ "v-if" => "state.events.length && !isLoadingStage && !isEmptyStage" } %template{ "v-if" => "state.events.length && !isLoadingStage && !isEmptyStage" }
%component{ ":is" => "currentStage.component", ":stage" => "currentStage", ":items" => "state.events" } %component{ ":is" => "currentStage.component", ":stage" => "currentStage", ":items" => "state.events" }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment