Removed recording warning on room delete if there are no recordings (#577)

This commit is contained in:
farhatahmad 2019-06-25 22:34:16 -04:00 committed by Jesus Federico
parent 9e0a7b513f
commit bb17771a03
2 changed files with 8 additions and 2 deletions

View File

@ -32,7 +32,12 @@
</div>
<div class="card-footer">
<p><%= t("modal.delete_room.warning", recordings_num: room.recordings.length).html_safe %> </p>
<p>
<%= t("modal.delete_room.warning").html_safe %>
<% if room.recordings.length > 0 %>
<%= t("modal.delete_room.recording_warning", recordings_num: room.recordings.length).html_safe %>
<% end %>
</p>
</div>
</div>
</div>

View File

@ -249,7 +249,8 @@ en:
confirm: Are you sure you want to delete %{room}?
delete: I'm sure, delete this room.
keep: On second thought, I'll keep it.
warning: You will <b>not</b> be able to recover this room or any of its %{recordings_num} associated recordings.
warning: You will <b>not</b> be able to recover this room
recording_warning: or any of its %{recordings_num} associated recordings.
invite_user:
email_placeholder: Enter the user's email
footer: The user will receive an email with instructions on how to sign up