diff --git a/defaults/core/cms/add_content.svelte b/defaults/core/cms/add_content.svelte
index a9a6bacf..36868556 100644
--- a/defaults/core/cms/add_content.svelte
+++ b/defaults/core/cms/add_content.svelte
@@ -3,11 +3,10 @@
import ButtonWrapper from './button_wrapper.svelte';
import validateFilename from './validate_filename.js';
- export let showAdd, showEditor, env;
+ export let showContentModal, showAdd, showEditor, env, selectedType;
let filename = "";
let baseurl = env.baseurl ? env.baseurl : '/';
- let selectedType;
const setType = type => {
selectedType = type;
}
@@ -17,6 +16,7 @@
validationErrors = validateFilename(filename, selectedType);
// No errors, redirect to "add" page
if (validationErrors.length === 0) {
+ showContentModal = false;
redirectAndEdit(baseurl + '#add/' + selectedType + '/' + filename);
}
}
@@ -49,7 +49,10 @@
{/if}