From dbc4de9a0e75327b7f1192bf9b11b43f0faa8fdf Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Mon, 6 Dec 2021 11:17:15 -0600 Subject: [PATCH] fix: don't show saving status if template note inserted to be interactable with advanced editor --- app/assets/javascripts/views/editor/editor_view.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/assets/javascripts/views/editor/editor_view.ts b/app/assets/javascripts/views/editor/editor_view.ts index 2f322451e..d032bf04f 100644 --- a/app/assets/javascripts/views/editor/editor_view.ts +++ b/app/assets/javascripts/views/editor/editor_view.ts @@ -15,6 +15,7 @@ import { ComponentArea, PrefKey, ComponentMutator, + PayloadSource, } from '@standardnotes/snjs'; import { isDesktopApplication } from '@/utils'; import { KeyboardModifier, KeyboardKey } from '@/services/ioService'; @@ -172,6 +173,12 @@ class EditorViewCtrl extends PureViewCtrl { if (!this.editorValues.text) { this.editorValues.text = note.text; } + + const isTemplateNoteInsertedToBeInteractableWithEditor = source === PayloadSource.Constructor && note.dirty; + if (isTemplateNoteInsertedToBeInteractableWithEditor) { + return; + } + if (note.lastSyncBegan || note.dirty) { if (note.lastSyncEnd) { if (