mirror of
https://github.com/Ellpeck/ObsidianSimpleTimeTracker.git
synced 2024-11-28 12:08:34 +01:00
fix: Change tooltip based on collapse state
This commit is contained in:
parent
de12a997a7
commit
bd7c35e7fb
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ function addEditableTableRow(tracker: Tracker, entry: Entry, table: HTMLTableEle
|
||||||
.setClass("clickable-icon")
|
.setClass("clickable-icon")
|
||||||
.setClass("simple-time-tracker-expand-button")
|
.setClass("simple-time-tracker-expand-button")
|
||||||
.setIcon(`chevron-${entry.collapsed ? 'right' : 'down'}`)
|
.setIcon(`chevron-${entry.collapsed ? 'right' : 'down'}`)
|
||||||
.setTooltip("Collapse")
|
.setTooltip(entry.collapsed ? "Expand" : "Collapse")
|
||||||
.onClick(async () => {
|
.onClick(async () => {
|
||||||
if (entry.collapsed) {
|
if (entry.collapsed) {
|
||||||
delete entry.collapsed;
|
delete entry.collapsed;
|
||||||
|
|
Loading…
Reference in a new issue