Commit 0b1b30b5558d2a5e29781ab46b9639309aabb25c
1 parent
0e32b379
Exists in
colab
and in
4 other branches
Refactored disabling new CompoundMetricConfiguration #45
Signed-off-by:Beatriz Rezener <beatrizrezener@gmail.com> Signed-off-by:João Gabriel <joaogabrieldebrittoesilva@gmail.com> Signed-off-by:Rafael R. Manzo <rr.manzo@gmail.com>
Showing
3 changed files
with
2 additions
and
4 deletions
Show diff stats
app/controllers/metric_configurations_controller.rb
... | ... | @@ -3,7 +3,6 @@ class MetricConfigurationsController < BaseMetricConfigurationsController |
3 | 3 | @mezuro_configuration_id = params[:mezuro_configuration_id].to_i |
4 | 4 | @metric_configuration_id = params[:metric_configuration_id].to_i |
5 | 5 | @metric_collectors = KalibroGatekeeperClient::Entities::MetricCollector.all |
6 | - @exist_metric = params[:exist_metric] | |
7 | 6 | end |
8 | 7 | |
9 | 8 | def new | ... | ... |
app/views/metric_configurations/choose_metric.html.erb
app/views/mezuro_configurations/show.html.erb
... | ... | @@ -11,8 +11,7 @@ |
11 | 11 | |
12 | 12 | <h2> Metrics </h2> |
13 | 13 | <% if mezuro_configuration_owner? @mezuro_configuration.id %> |
14 | -<% options = @mezuro_configuration_metric_configurations.empty? ? {} : {exist_metric: true}%> | |
15 | - <%= link_to 'Add Metric', mezuro_configuration_choose_metric_path(@mezuro_configuration.id, options), class: 'btn btn-info' %> | |
14 | + <%= link_to 'Add Metric', mezuro_configuration_choose_metric_path(@mezuro_configuration.id), class: 'btn btn-info' %> | |
16 | 15 | <% end %> |
17 | 16 | |
18 | 17 | <table class="table table-hover"> | ... | ... |