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.
remotes/origin/users-ajaxloadgroups
Vincent Petry 2016-02-10 13:39:25 +07:00
parent a6f997ddae
commit 1b9e291913
1 changed files with 2 additions and 1 deletions

@ -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
};