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
path: root/app
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-08-03 21:38:14 +0300
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-08-03 21:38:14 +0300
commit995a8ee2445ae10a7298822fc5d0c96d8064749a (patch)
tree7659e34e6943cdce42b7d54db4280184def47147 /app
parent2fce0c86e5adf084a88dfa5566bd8570416a9791 (diff)
Add plain prop of raw to first file on mount
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/repo/components/repo_editor.vue1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/repo/components/repo_editor.vue b/app/assets/javascripts/repo/components/repo_editor.vue
index aa0f50f6c14..e765868ebcd 100644
--- a/app/assets/javascripts/repo/components/repo_editor.vue
+++ b/app/assets/javascripts/repo/components/repo_editor.vue
@@ -11,6 +11,7 @@ const RepoEditor = {
Service.getRaw(this.activeFile.raw_path)
.then((rawResponse) => {
Store.blobRaw = rawResponse.data;
+ this.openedFiles[0].plain = rawResponse.data;
const monacoInstance = this.monaco.editor.create(this.$el, {
model: null,