Compare commits

...

2 commits

Author SHA1 Message Date
bK3127B201
578eac6007 fix: remove prettifer ignore 2024-03-18 09:19:17 +02:00
bK3127B201
29ee1614e9 fixL prettifer remove 2024-03-18 09:16:19 +02:00
2 changed files with 6 additions and 16 deletions

View file

@ -1 +0,0 @@
**

View file

@ -370,25 +370,15 @@ class EditableTimestampField extends EditableField {
}
}
function addEditableTableRow(
tracker: Tracker,
entry: Entry,
table: HTMLTableElement,
newSegmentNameBox: TextComponent,
trackerRunning: boolean,
file: string,
getSectionInfo: () => MarkdownSectionInformation,
settings: SimpleTimeTrackerSettings,
indent: number
): void {
function addEditableTableRow(tracker: Tracker, entry: Entry, table: HTMLTableElement, newSegmentNameBox: TextComponent, trackerRunning: boolean, file: string, getSectionInfo: () => MarkdownSectionInformation, settings: SimpleTimeTrackerSettings, indent: number): void {
let entryRunning = getRunningEntry(tracker.entries) == entry;
let row = table.createEl("tr");
let nameField = new EditableField(row, indent, entry.name);
let startField = new EditableTimestampField(row, entry.startTime, settings);
let endField = new EditableTimestampField(row, entry.endTime, settings);
let startField = new EditableTimestampField(row, (entry.startTime), settings);
let endField = new EditableTimestampField(row, (entry.endTime), settings);
row.createEl("td", { text: entry.endTime || entry.subEntries ? formatDuration(getDuration(entry), settings) : "" });
row.createEl("td", {text: entry.endTime || entry.subEntries ? formatDuration(getDuration(entry), settings) : ""});
renderSegments(row, file);
@ -440,7 +430,8 @@ function addEditableTableRow(
});
if (entry.subEntries) {
for (let sub of orderedEntries(entry.subEntries, settings)) addEditableTableRow(tracker, sub, table, newSegmentNameBox, trackerRunning, file, getSectionInfo, settings, indent + 1);
for (let sub of orderedEntries(entry.subEntries, settings))
addEditableTableRow(tracker, sub, table, newSegmentNameBox, trackerRunning, file, getSectionInfo, settings, indent + 1);
}
}