mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix: rename isMarkdownFormattingInNotesEnabled to isMarkdownFormattingEnabled for consistency
This commit is contained in:
parent
b4bdf94040
commit
7920067fa4
2 changed files with 4 additions and 4 deletions
|
|
@ -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'"
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue