forked from External/greenlight
Added full email list to invite flash (#2646)
This commit is contained in:
parent
b8d9e2ffd2
commit
eeab951fcd
|
@ -148,7 +148,8 @@ class AdminsController < ApplicationController
|
||||||
send_invitation_email(current_user.name, email, invitation)
|
send_invitation_email(current_user.name, email, invitation)
|
||||||
end
|
end
|
||||||
|
|
||||||
redirect_back fallback_location: admins_path
|
redirect_back fallback_location: admins_path,
|
||||||
|
flash: { success: I18n.t("administrator.flash.invite", email: emails.join(", ")) }
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /admins/reset
|
# GET /admins/reset
|
||||||
|
|
|
@ -78,8 +78,6 @@ module Emailer
|
||||||
rescue => e
|
rescue => e
|
||||||
logger.error "Support: Error in email delivery: #{e}"
|
logger.error "Support: Error in email delivery: #{e}"
|
||||||
flash[:alert] = I18n.t(params[:message], default: I18n.t("delivery_error"))
|
flash[:alert] = I18n.t(params[:message], default: I18n.t("delivery_error"))
|
||||||
else
|
|
||||||
flash[:success] = I18n.t("administrator.flash.invite", email: email)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue