Load raw data for text view.

This commit is contained in:
Jacob Schatz 2017-08-03 10:31:05 -04:00
parent ef6ce7a9ec
commit 0c4b369c30
2 changed files with 9 additions and 1 deletions

View file

@ -167,7 +167,11 @@ const RepoHelper = {
RepoHelper.setBinaryDataAsBase64(rawUrl, data);
data.binary = true;
} else {
Store.blobRaw = data.plain;
Service.getRaw(data.raw_path)
.then(response => {
Store.blobRaw = response.data;
})
// Store.blobRaw = data.plain;
data.binary = false;
}

View file

@ -18,6 +18,10 @@ const RepoService = {
} });
},
getRaw(url) {
return axios.get(url);
},
buildParams(url = this.url) {
// shallow clone object without reference
const params = Object.assign({}, this.options.params);