Skip to content

Commit

Permalink
Report Dashboard actions confirmation messages consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
GregP committed Nov 9, 2017
1 parent fce270e commit 5c66890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/report_controller/dashboards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def db_edit
if !@db || @db.id.blank?
add_flash(_("Add of new Dashboard was cancelled by the user"))
else
add_flash(_("Edit of Dashboard \"%{name}\" was cancelled by the user") % {:name => @db.name})
add_flash(_("Edit of Dashboard \"%{name}\" was cancelled by the user") % {:name => get_record_display_name(@db)})
end
get_node_info
@edit = session[:edit] = nil # clean out the saved info
Expand All @@ -76,7 +76,7 @@ def db_edit
if @flash_array.nil? && @db.save
db_save_members
AuditEvent.success(build_saved_audit(@db, @edit))
add_flash(_("Dashboard \"%{name}\" was saved") % {:name => @db.name})
add_flash(_("Dashboard \"%{name}\" was saved") % {:name => get_record_display_name(@db)})
if params[:button] == "add"
widgetset = MiqWidgetSet.where_unique_on(@edit[:new][:name]).first
settings = g.settings ? g.settings : {}
Expand Down

0 comments on commit 5c66890

Please sign in to comment.