Added full email list to invite flash (#2646)

This commit is contained in:
Ahmad Farhat 2021-04-12 17:32:48 -04:00 committed by GitHub
parent b8d9e2ffd2
commit eeab951fcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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