Add time for due/start date for tasks table list [SCI-12020]

This commit is contained in:
Andrej 2025-06-12 11:31:40 +02:00
parent 3cbc2930aa
commit b8e426cf16

View file

@ -21,7 +21,6 @@ module Lists
tags
tags_html
comments
due_date_formatted
due_date_cell
start_date_cell
permissions
@ -86,14 +85,10 @@ module Lists
I18n.l(object.due_date, format: :default) if object.due_date
end
def due_date_formatted
I18n.l(object.due_date, format: :full_date) if object.due_date
end
def due_date_cell
{
value: due_date,
value_formatted: due_date_formatted,
value_formatted: due_date,
editable: can_update_my_module_due_date?(object),
icon: (if object.is_one_day_prior? && !object.completed?
'sn-icon sn-icon-alert-warning text-sn-alert-brittlebush'
@ -106,7 +101,7 @@ module Lists
def start_date_cell
{
value: start_date,
value_formatted: start_date_formatted,
value_formatted: start_date,
editable: can_update_my_module_start_date?(object)
}
end
@ -196,9 +191,5 @@ module Lists
def start_date
I18n.l(object.started_on, format: :default) if object.started_on
end
def start_date_formatted
I18n.l(object.started_on, format: :full_date) if object.started_on
end
end
end