Only render 1 delete room modal (#819)

This commit is contained in:
Ahmad Farhat
2019-10-10 15:45:42 -04:00
committed by Jesus Federico
parent 58cfb0ec30
commit 3f5affd116
4 changed files with 17 additions and 9 deletions

View File

@ -54,7 +54,7 @@
<a href="" data-toggle="modal" data-target="#createRoomModal" class="update-room dropdown-item">
<i class="dropdown-icon fas fa-cog"></i> <%= t("room.settings") %>
</a>
<a href="" data-toggle="modal" data-target="#deleteRoomModal_<%= room.uid %>"class="dropdown-item">
<a href="" data-toggle="modal" data-target="#deleteRoomModal" data-path="<%= room_path(room) %>" data-name="<%= room.name %>" class="delete-room dropdown-item">
<i class="dropdown-icon far fa-trash-alt"></i> <%= t("delete") %>
</a>
</div>