fix: rename isMarkdownFormattingInNotesEnabled to isMarkdownFormattingEnabled for consistency

This commit is contained in:
Ivan Kalashnikov 2026-01-18 23:51:30 +07:00
parent b4bdf94040
commit 7920067fa4
2 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
[class.isHideOverflow]="isHideOverflow()"
class="markdown-wrapper"
>
@if (isShowEdit() || !isMarkdownFormattingInNotesEnabled()) {
@if (isShowEdit() || !isMarkdownFormattingEnabled()) {
<textarea
#textareaEl
(blur)="untoggleShowEdit(); setBlur($event)"
@ -20,7 +20,7 @@
}
<!-- (focus)="clickOrFocusPreview($event, true)"-->
@if (isMarkdownFormattingInNotesEnabled()) {
@if (isMarkdownFormattingEnabled()) {
<div
#previewEl
(click)="clickPreview($event)"
@ -37,7 +37,7 @@
<div class="controls">
<ng-content> </ng-content>
@if (isShowChecklistToggle() && isMarkdownFormattingInNotesEnabled()) {
@if (isShowChecklistToggle() && isMarkdownFormattingEnabled()) {
<!-- -->
<button
[matTooltip]="'Add checklist item'"

View file

@ -60,7 +60,7 @@ export class InlineMarkdownComponent implements OnInit, OnDestroy {
isShowEdit = signal(false);
modelCopy = signal<string | undefined>(undefined);
isMarkdownFormattingInNotesEnabled = computed(() => {
isMarkdownFormattingEnabled = computed(() => {
const tasks = this._globalConfigService.tasks();
return tasks?.isMarkdownFormattingInNotesEnabled ?? true;
});