diff --git a/src/app/features/config/default-global-config.const.ts b/src/app/features/config/default-global-config.const.ts index 548d941ae..f7aefa837 100644 --- a/src/app/features/config/default-global-config.const.ts +++ b/src/app/features/config/default-global-config.const.ts @@ -40,7 +40,7 @@ export const DEFAULT_GLOBAL_CONFIG: GlobalConfigState = { isAutoMarkParentAsDone: false, isTrayShowCurrentTask: true, defaultProjectId: null, - isMarkdownNotesEnabled: true, + isMarkdownFormattingInNotesEnabled: true, notesTemplate: defaultTaskNoteTemplate, }, misc: { diff --git a/src/app/features/config/form-cfgs/tasks-settings-form.const.ts b/src/app/features/config/form-cfgs/tasks-settings-form.const.ts index 8057139c0..e8c5d4bc1 100644 --- a/src/app/features/config/form-cfgs/tasks-settings-form.const.ts +++ b/src/app/features/config/form-cfgs/tasks-settings-form.const.ts @@ -41,10 +41,10 @@ export const TASKS_SETTINGS_FORM_CFG: ConfigFormSection = { }, }, { - key: 'isMarkdownNotesEnabled', + key: 'isMarkdownFormattingInNotesEnabled', type: 'checkbox', templateOptions: { - label: T.GCF.TASKS.IS_MARKDOWN_NOTES_ENABLED, + label: T.GCF.TASKS.IS_MARKDOWN_FORMATTING_IN_NOTES_ENABLED, }, }, { diff --git a/src/app/features/config/global-config.model.ts b/src/app/features/config/global-config.model.ts index 728769847..f044f4822 100644 --- a/src/app/features/config/global-config.model.ts +++ b/src/app/features/config/global-config.model.ts @@ -44,7 +44,7 @@ export type TasksConfig = Readonly<{ isTrayShowCurrentTask: boolean; // allow also false because of #569 defaultProjectId?: string | null | false; - isMarkdownNotesEnabled: boolean; + isMarkdownFormattingInNotesEnabled: boolean; notesTemplate: string; }>; diff --git a/src/app/t.const.ts b/src/app/t.const.ts index 3efd179ec..a5a529425 100644 --- a/src/app/t.const.ts +++ b/src/app/t.const.ts @@ -1851,7 +1851,8 @@ const T = { IS_AUTO_ADD_WORKED_ON_TO_TODAY: 'GCF.TASKS.IS_AUTO_ADD_WORKED_ON_TO_TODAY', IS_AUTO_MARK_PARENT_AS_DONE: 'GCF.TASKS.IS_AUTO_MARK_PARENT_AS_DONE', IS_CONFIRM_BEFORE_TASK_DELETE: 'GCF.TASKS.IS_CONFIRM_BEFORE_TASK_DELETE', - IS_MARKDOWN_NOTES_ENABLED: 'GCF.TASKS.IS_MARKDOWN_NOTES_ENABLED', + IS_MARKDOWN_FORMATTING_IN_NOTES_ENABLED: + 'GCF.TASKS.IS_MARKDOWN_FORMATTING_IN_NOTES_ENABLED', IS_TRAY_SHOW_CURRENT_TASK: 'GCF.TASKS.IS_TRAY_SHOW_CURRENT_TASK', NOTES_TEMPLATE: 'GCF.TASKS.NOTES_TEMPLATE', TITLE: 'GCF.TASKS.TITLE', diff --git a/src/app/ui/inline-markdown/inline-markdown.component.html b/src/app/ui/inline-markdown/inline-markdown.component.html index f46c58136..dd60d0174 100644 --- a/src/app/ui/inline-markdown/inline-markdown.component.html +++ b/src/app/ui/inline-markdown/inline-markdown.component.html @@ -3,7 +3,7 @@ [class.isHideOverflow]="isHideOverflow()" class="markdown-wrapper" > - @if (isShowEdit() || !isMarkdownNotesEnabled()) { + @if (isShowEdit() || !isMarkdownFormattingInNotesEnabled()) {