kossa/laradminator

Sidebar link Active doesn't show dot

Closed this issue · 7 comments

The style the sidebar.scss has a class .active:before but it is not working.

Didn't find anything but reported the bug

kossa commented

What is the wanted result ?

The dot in the active navbar.

dotted menu

kossa commented

Alright fixed thank you

@kossa I found the problem. in the file resources/js/sidebar/index.js line 55 the filter function always returns false, if you change the return from:

return pattern === (window.location.pathname).substr(1);

to

return pattern === window.location.href;

the dot is already working.

kossa commented

Alright it's much better I think