mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
chore(prettier): fix code style
This commit is contained in:
@@ -55,8 +55,8 @@ const TPL = `<div class="toc-widget">
|
||||
</div>`;
|
||||
|
||||
interface Toc {
|
||||
$toc: JQuery<HTMLElement>,
|
||||
headingCount: number
|
||||
$toc: JQuery<HTMLElement>;
|
||||
headingCount: number;
|
||||
}
|
||||
|
||||
export default class TocWidget extends RightPanelWidget {
|
||||
@@ -89,8 +89,8 @@ export default class TocWidget extends RightPanelWidget {
|
||||
return false;
|
||||
}
|
||||
|
||||
const isHelpNote = (this.note.type === "doc" && this.note.noteId.startsWith("_help"));
|
||||
const isTextNote = (this.note.type === "text");
|
||||
const isHelpNote = this.note.type === "doc" && this.note.noteId.startsWith("_help");
|
||||
const isTextNote = this.note.type === "text";
|
||||
const isNoteSupported = isTextNote || isHelpNote;
|
||||
|
||||
return isNoteSupported
|
||||
@@ -156,7 +156,7 @@ export default class TocWidget extends RightPanelWidget {
|
||||
|
||||
const tocLabelValue = this.tocLabelValue;
|
||||
|
||||
const visible = (tocLabelValue === "" || tocLabelValue === "show") || headingCount >= (options.getInt("minTocHeadings") ?? 0);
|
||||
const visible = tocLabelValue === "" || tocLabelValue === "show" || headingCount >= (options.getInt("minTocHeadings") ?? 0);
|
||||
this.toggleInt(visible);
|
||||
if (this.noteContext?.viewScope) {
|
||||
this.noteContext.viewScope.tocPreviousVisible = visible;
|
||||
|
||||
Reference in New Issue
Block a user