Added condition badge in show and removed in_use
This commit is contained in:
@@ -112,9 +112,8 @@ class Item < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
# 3. Ermittelt den abstrakten Zustands-Typen für das Badge (Berücksichtigt deinen Umlauf)
|
||||
def condition_badge_type
|
||||
(user_id.present? || room_id.present?) ? "in_use" : condition
|
||||
condition
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user