fix: Change tooltip based on collapse state

This commit is contained in:
James Rupert Tan 2024-06-07 05:51:38 -05:00
parent de12a997a7
commit bd7c35e7fb

View file

@ -324,7 +324,7 @@ function addEditableTableRow(tracker: Tracker, entry: Entry, table: HTMLTableEle
.setClass("clickable-icon")
.setClass("simple-time-tracker-expand-button")
.setIcon(`chevron-${entry.collapsed ? 'right' : 'down'}`)
.setTooltip("Collapse")
.setTooltip(entry.collapsed ? "Expand" : "Collapse")
.onClick(async () => {
if (entry.collapsed) {
delete entry.collapsed;