diff --git a/app/models/room.rb b/app/models/room.rb index 158fdc23..82650001 100644 --- a/app/models/room.rb +++ b/app/models/room.rb @@ -49,7 +49,9 @@ class Room < ApplicationRecord # Include the owner of the table table = joins(:owner) - return table.order(Arel.sql("rooms.#{column} #{direction}")) if table.column_names.include?(column) || column == "users.name" + return table.order(Arel.sql("rooms.#{column} #{direction}")) if table.column_names.include?(column) + + return table.order(Arel.sql("#{column} #{direction}")) if column == "users.name" table end diff --git a/app/views/admins/components/_server_room_row.html.erb b/app/views/admins/components/_server_room_row.html.erb index 26e4892e..d41fe740 100644 --- a/app/views/admins/components/_server_room_row.html.erb +++ b/app/views/admins/components/_server_room_row.html.erb @@ -53,7 +53,7 @@ <%= button_to start_room_path(room), class: "dropdown-item", "data-disable": "" do %> <%= running ? t("room.join") : t("room.start") %> <% end %> - + <%= t("room.settings") %> <% if shared_access_allowed %>