Skip to content

Commit

Permalink
feat: set TimeSelector minimumSeconds for revision_snapshot_interval …
Browse files Browse the repository at this point in the history
…and remove TODO
  • Loading branch information
pano9000 committed Feb 18, 2025
1 parent 28148b3 commit bf41c54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@ const TPL = `
<p class="use-tn-links">${t("revisions_snapshot_interval.note_revisions_snapshot_description")}</p>
<div id="time-selector-placeholder"></div>
</div>`;
//TriliumNextTODO: add support for setting minimum number of entered seconds -> snapshot revision should not be less than 10 seconds

export default class RevisionsSnapshotIntervalOptions extends TimeSelector {

constructor() {
super({
widgetId: "revision-snapshot-time-interval",
widgetLabelId: "revisions_snapshot_interval.snapshot_time_interval_label",
optionValueId: "revisionSnapshotTimeInterval",
optionTimeScaleId: "revisionSnapshotTimeIntervalTimeScale"
optionTimeScaleId: "revisionSnapshotTimeIntervalTimeScale",
minimumSeconds: 10
});
super.doRender();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ const TPL = (options: Omit<TimeSelectorConstructor, "optionValueId" | "optionTim
}
</style>`;

//TriliumNextTODO: add support for setting minimum number of entered seconds
export default class TimeSelector extends OptionsWidget {
private $timeValueInput!: JQuery<HTMLInputElement>;
private $timeScaleSelect!: JQuery<HTMLSelectElement>;
Expand Down

0 comments on commit bf41c54

Please sign in to comment.