forked from External/greenlight
remove ability to change home room
This commit is contained in:
parent
ab7ae8434b
commit
efcc312e9e
|
@ -90,14 +90,6 @@ class RoomsController < ApplicationController
|
|||
redirect_to @room
|
||||
end
|
||||
|
||||
# POST /:room_uid/home
|
||||
def home
|
||||
current_user.main_room = @room
|
||||
current_user.save
|
||||
|
||||
redirect_to @room
|
||||
end
|
||||
|
||||
# POST /:room_uid/:record_id
|
||||
def update_recording
|
||||
meta = {
|
||||
|
|
|
@ -22,22 +22,21 @@
|
|||
</div>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<div class="item-action dropdown">
|
||||
<a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fas fa-ellipsis-v"></i></a>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<%= link_to room, class: "dropdown-item" do %>
|
||||
<i class="dropdown-icon fas fa-cog"></i> Room Settings
|
||||
<% end %>
|
||||
<% if room != current_user.main_room %>
|
||||
<%= button_to make_home_path(room), class: "dropdown-item" do %>
|
||||
<i class="dropdown-icon fas fa-home"></i> Make Home Room
|
||||
<% if room != current_user.main_room %>
|
||||
<div class="item-action dropdown">
|
||||
<a href="javascript:void(0)" data-toggle="dropdown" class="icon"><i class="fas fa-ellipsis-v"></i></a>
|
||||
<div class="dropdown-menu dropdown-menu-right">
|
||||
<!--
|
||||
<%= link_to room, class: "dropdown-item" do %>
|
||||
<i class="dropdown-icon fas fa-cog"></i> Room Settings
|
||||
<% end %>
|
||||
-->
|
||||
<%= button_to room, method: :delete, data: { confirm: 'Are you sure?' }, class: "dropdown-item" do %>
|
||||
<i class="dropdown-icon far fa-trash-alt"></i> Delete
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</td>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -36,7 +36,6 @@ Rails.application.routes.draw do
|
|||
post '/', to: 'rooms#join'
|
||||
post '/start', to: 'rooms#start', as: :start_room
|
||||
get '/logout', to: 'rooms#logout', as: :logout_room
|
||||
post '/home', to: 'rooms#home', as: :make_home
|
||||
|
||||
# Mange recordings.
|
||||
scope '/:record_id' do
|
||||
|
|
Loading…
Reference in New Issue