Commit bc0d0ed5 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

FileManager: fixed messed up navbar at fs-root /

parent 44c7ae3b
......@@ -30,12 +30,11 @@ define([
}},
computed: {
parts: function() {
return this.path.split("/");
return this.path.split("/").filter(function(p, i){return !i || p;});
},
paths: function() {
var parts = this.parts;
return parts.map(function(p, i){return parts.slice(0, i + 1).join("/") || "/"});
},
basename: function() {
return this.parts.slice(-1)[0] || this.path;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment