Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
bc0d0ed5
Commit
bc0d0ed5
authored
Aug 11, 2017
by
Benjamin Fischer
Browse files
FileManager: fixed messed up navbar at fs-root /
parent
44c7ae3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/extensions/file2/static/js/vue/navbar.js
View file @
bc0d0ed5
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment