Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Don't warn on format change when campaign content is empty. Closes #634.

Kailash Nadhe982e6bb2568
diff --git a/frontend/src/components/Editor.vue b/frontend/src/components/Editor.vue
index fa373e9b..11a885a6 100644
--- a/frontend/src/components/Editor.vue
+++ b/frontend/src/components/Editor.vue
@@ -252,6 +252,13 @@ export default {
},
onFormatChange(format) {
+ if (this.form.body.trim() === '') {
+ this.form.format = format;
+ this.onEditorChange();
+ return;
+ }
+
+ // Content isn't empty. Warn.
this.$utils.confirm(
this.$t('campaigns.confirmSwitchFormat'),
() => {