Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-04-10 18:48:02 +0300
committerPhil Hughes <me@iamphill.com>2018-04-10 18:48:02 +0300
commit2ec6a7e101c3c98153f4769cb70e761a2d4e3e69 (patch)
treeb04a59ccfd2349c523af13fb381619e03ba24b35 /app/assets
parent23fb465c75d00fd7156a540b7421a79e22df3966 (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.vue4
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>