Skip to content
Snippets Groups Projects
Unverified Commit eeab951f authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Added full email list to invite flash (#2646)

parent b8d9e2ff
Branches
Tags
No related merge requests found
......@@ -148,7 +148,8 @@ class AdminsController < ApplicationController
send_invitation_email(current_user.name, email, invitation)
end
redirect_back fallback_location: admins_path
redirect_back fallback_location: admins_path,
flash: { success: I18n.t("administrator.flash.invite", email: emails.join(", ")) }
end
# GET /admins/reset
......
......@@ -78,8 +78,6 @@ module Emailer
rescue => e
logger.error "Support: Error in email delivery: #{e}"
flash[:alert] = I18n.t(params[:message], default: I18n.t("delivery_error"))
else
flash[:success] = I18n.t("administrator.flash.invite", email: email)
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment