Use full path of known file when handling versions

Instead of relying on the versions API response, use the known file path
when populating version models.
This commit is contained in:
Vincent Petry 2016-02-10 13:39:25 +01:00
parent a6f997ddae
commit 1b9e291913
1 changed files with 2 additions and 1 deletions

View File

@ -73,12 +73,13 @@
},
parse: function(result) {
var fullPath = this._fileInfo.getFullPath();
var results = _.map(result.data.versions, function(version) {
var revision = parseInt(version.version, 10);
return {
id: revision,
name: version.name,
fullPath: version.path,
fullPath: fullPath,
timestamp: revision,
size: version.size
};