fix: don't show saving status if template note inserted to be interactable with advanced editor

This commit is contained in:
Mo Bitar
2021-12-06 11:17:15 -06:00
parent 9f5c650392
commit dbc4de9a0e

View File

@@ -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<unknown, EditorState> {
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 (