mirror of https://github.com/keeweb/keeweb.git
webdav paths
This commit is contained in:
parent
b24d49dd93
commit
7cd93c0b6b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue