diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-10 18:48:02 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-10 18:48:02 +0300 |
commit | 2ec6a7e101c3c98153f4769cb70e761a2d4e3e69 (patch) | |
tree | b04a59ccfd2349c523af13fb381619e03ba24b35 /app/assets | |
parent | 23fb465c75d00fd7156a540b7421a79e22df3966 (diff) |
Fixed markdown preview in IDE not working for new files
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/ide/components/repo_editor.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/ide/components/repo_editor.vue b/app/assets/javascripts/ide/components/repo_editor.vue index 6aa44ca2c11..711bafa17a9 100644 --- a/app/assets/javascripts/ide/components/repo_editor.vue +++ b/app/assets/javascripts/ide/components/repo_editor.vue @@ -22,7 +22,7 @@ export default { ...mapState(['rightPanelCollapsed', 'viewer', 'delayViewerUpdated', 'panelResizing']), ...mapGetters(['currentMergeRequest']), shouldHideEditor() { - return this.file && this.file.binary && !this.file.raw; + return this.file && this.file.binary && !this.file.content; }, editTabCSS() { return { @@ -212,7 +212,7 @@ export default { <content-viewer v-if="shouldHideEditor || file.viewMode === 'preview'" :content="file.content || file.raw" - :path="file.rawPath" + :path="file.rawPath || file.path" :file-size="file.size" :project-path="file.projectId"/> </div> |