Commit 0c4b369c authored by Jacob Schatz's avatar Jacob Schatz

Load raw data for text view.

parent ef6ce7a9
...@@ -167,7 +167,11 @@ const RepoHelper = { ...@@ -167,7 +167,11 @@ const RepoHelper = {
RepoHelper.setBinaryDataAsBase64(rawUrl, data); RepoHelper.setBinaryDataAsBase64(rawUrl, data);
data.binary = true; data.binary = true;
} else { } else {
Store.blobRaw = data.plain; Service.getRaw(data.raw_path)
.then(response => {
Store.blobRaw = response.data;
})
// Store.blobRaw = data.plain;
data.binary = false; data.binary = false;
} }
......
...@@ -18,6 +18,10 @@ const RepoService = { ...@@ -18,6 +18,10 @@ const RepoService = {
} }); } });
}, },
getRaw(url) {
return axios.get(url);
},
buildParams(url = this.url) { buildParams(url = this.url) {
// shallow clone object without reference // shallow clone object without reference
const params = Object.assign({}, this.options.params); const params = Object.assign({}, this.options.params);
......
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