feat(journey-editor): JourneyEditor frontend — issue #753 #792
@@ -43,10 +43,18 @@ async function handleNoteBlur() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function handleNoteRemove() {
|
async function handleNoteRemove() {
|
||||||
|
const prevDraft = noteDraft;
|
||||||
|
const prevShowNote = showNote;
|
||||||
noteDraft = '';
|
noteDraft = '';
|
||||||
showNote = false;
|
showNote = false;
|
||||||
noteError = '';
|
noteError = '';
|
||||||
await onNotePatch(null);
|
try {
|
||||||
|
await onNotePatch(null);
|
||||||
|
} catch {
|
||||||
|
noteDraft = prevDraft;
|
||||||
|
showNote = prevShowNote;
|
||||||
|
noteError = m.journey_note_error();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleRemoveClick() {
|
function handleRemoveClick() {
|
||||||
|
|||||||
Reference in New Issue
Block a user