forked from External/greenlight
fix email link
This commit is contained in:
parent
55f2041b7c
commit
80374e02a5
|
@ -47,9 +47,7 @@
|
||||||
|
|
||||||
} else if (data.action === 'create') {
|
} else if (data.action === 'create') {
|
||||||
if (row.length == 0) {
|
if (row.length == 0) {
|
||||||
data.duration = data.length;
|
recordings.refresh();
|
||||||
table.rows.add([data]);
|
|
||||||
recordings.draw();
|
|
||||||
showAlert(I18n.recording_created, 4000);
|
showAlert(I18n.recording_created, 4000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,9 @@ class NotificationMailer < ActionMailer::Base
|
||||||
def recording_ready_email(user)
|
def recording_ready_email(user)
|
||||||
@user = user
|
@user = user
|
||||||
@room_url = meeting_room_url(resource: 'rooms', id: user.encrypted_id)
|
@room_url = meeting_room_url(resource: 'rooms', id: user.encrypted_id)
|
||||||
|
unless @room_url.include? "#{Rails.configuration.relative_url_root}/"
|
||||||
|
@room_url = @room_url.split('/rooms/').join("#{Rails.configuration.relative_url_root}/rooms/")
|
||||||
|
end
|
||||||
mail(to: user.email, subject: t('.subject'))
|
mail(to: user.email, subject: t('.subject'))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue