diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-08-03 21:38:14 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-08-03 21:38:14 +0300 |
commit | 995a8ee2445ae10a7298822fc5d0c96d8064749a (patch) | |
tree | 7659e34e6943cdce42b7d54db4280184def47147 /app | |
parent | 2fce0c86e5adf084a88dfa5566bd8570416a9791 (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.vue | 1 |
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, |