webdav paths

This commit is contained in:
antelle 2017-02-04 23:51:17 +01:00
parent b24d49dd93
commit 7cd93c0b6b
1 changed files with 9 additions and 1 deletions

View File

@ -131,13 +131,21 @@ const OpenView = Backbone.View.extend({
return {
id: f.get('id'),
name: f.get('name'),
path: f.get('storage') === 'file' ? f.get('path') : null,
path: this.getDisplayedPath(f),
icon: icon,
iconSvg: storage ? storage.iconSvg : undefined
};
});
},
getDisplayedPath: function(fileInfo) {
const storage = fileInfo.get('storage');
if (storage === 'file' || storage === 'webdav') {
return fileInfo.get('path');
}
return null;
},
remove: function() {
this.passwordInput.reset();
Backbone.View.prototype.remove.apply(this, arguments);