feat: branch off / create from template

This commit is contained in:
NGPixel
2020-03-01 18:22:26 -05:00
committed by Nicolas Giard
parent e85de92715
commit 13a995133b
7 changed files with 142 additions and 21 deletions

View File

@@ -474,7 +474,7 @@ export default {
mounted() {
this.$store.set('editor/editorKey', 'markdown')
if (this.mode === 'create') {
if (this.mode === 'create' && !this.$store.get('editor/content')) {
this.$store.set('editor/content', '# Header\nYour content here')
}