Remove metadata info
Former-commit-id: 3a0ea5c2836522c911d248ba1d8440305b467632 [formerly c729073fab859e4ec2f592013700c0231fb7bc52] [formerly ea986f6a17ca868a3dccb6af23d2bdccacc69202 [formerly f015cc39e8724ebfd98ec9343487da54f4b3c5a2]] Former-commit-id: dbca97bae3069e9caff29761ea0d7ed3bc5dcaf0 [formerly 70c33432549383f2be7c683003a6e5e73fca23eb] Former-commit-id: 40c99507bdd982c40bc0c7095b7dbbd8b76b453d
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<form id="editor">
|
||||
<h2 v-if="req.data.editor.type == 'complete'">Metadata</h2>
|
||||
<h2 v-if="hasMetadata">Metadata</h2>
|
||||
|
||||
<h2 v-if="req.data.editor.type == 'complete'">Body</h2>
|
||||
<h2 v-if="hasMetadata">Body</h2>
|
||||
|
||||
<div v-if="req.data.editor.type !== 'frontmatter-only'" class="content">
|
||||
<div class="content">
|
||||
<div id="ace"></div>
|
||||
<textarea id="source" name="content">{{ req.data.content }}</textarea>
|
||||
</div>
|
||||
@@ -16,7 +16,12 @@ import { mapState } from 'vuex'
|
||||
|
||||
export default {
|
||||
name: 'editor',
|
||||
computed: mapState(['req']),
|
||||
computed: {
|
||||
...mapState(['req']),
|
||||
hasMetadata: function () {
|
||||
return (this.req.data.metadata !== undefined && this.req.data.metadata !== null)
|
||||
}
|
||||
},
|
||||
data: function () {
|
||||
return {
|
||||
codemirror: null,
|
||||
|
||||
Reference in New Issue
Block a user