fixL prettifer remove

This commit is contained in:
bK3127B201 2024-03-18 09:16:19 +02:00
parent f11ce3e807
commit 29ee1614e9

View file

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