always show the running timer in the timers list #5

This commit is contained in:
Jens Kraemer committed 2021-08-31 14:24:24 +08:00
1 parent 9802307e5e
commit 6c51ef795a
2 files changed
+9 -2

No files matched your search

@@ -86,7 +86,9 @@ class StopwatchTimersController < ApplicationController
end
def load_todays_entries
@entries = time_entries.where(spent_on: User.current.today).order(created_on: :asc)
@entries = time_entries.where(spent_on: User.current.today).or(
time_entries.where(id: User.current.running_time_entry_id)
).order(created_on: :asc)
end
def time_entries