Commit 60db995f4f5fc01b1e239a283cce71eed4ff8fc9
Exists in
colab
and in
4 other branches
Merge pull request #147 from beatrizrezener/issue45
Refactored disabling new CompoundMetricConfiguration #45
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"> | ... | ... |