Skip to content

Commit

Permalink
Merge pull request ManageIQ#2052 from europ/remove-ui-constants-44
Browse files Browse the repository at this point in the history
Remove PROV_STATES from UiConstants
  • Loading branch information
martinpovolny authored Aug 30, 2017
2 parents 9c26bd0 + 15133a8 commit 56483b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 6 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ def pp_choices

AE_MAX_RESOLUTION_FIELDS = 5 # Maximum fields to show for automation engine resolution screens

PROV_STATES = {
"pending_approval" => N_("Pending Approval"),
"approved" => N_("Approved"),
"denied" => N_("Denied")
}.freeze

def local_request?
Rails.env.development? || Rails.env.test?
end
Expand Down
5 changes: 0 additions & 5 deletions app/helpers/ui_constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ module UiConstants
6 => N_("6 Days Ago")
}

PROV_STATES = {
"pending_approval" => N_("Pending Approval"),
"approved" => N_("Approved"),
"denied" => N_("Denied")
}
PROV_TIME_PERIODS = {
1 => N_("Last 24 Hours"),
7 => N_("Last 7 Days"),
Expand Down

0 comments on commit 56483b5

Please sign in to comment.