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:
parent
a6f997ddae
commit
1b9e291913
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue