Commit 7fcc1eef authored by Fatih Acet's avatar Fatih Acet

Show ”Nothing to preview” if the markdown area is empty.

parent 0c0b5fab
......@@ -54,6 +54,10 @@
this.markdownPreviewLoading = false;
this.markdownPreview = data.body;
if (!this.markdownPreview) {
this.markdownPreview = 'Nothing to preview.';
}
this.$nextTick(() => {
$(this.$refs['markdown-preview']).renderGFM();
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment