Rename new_sidebar in JS
This commit is contained in:
parent
33380f811e
commit
58af2647dc
2 changed files with 5 additions and 5 deletions
|
@ -2,7 +2,7 @@ import Cookies from 'js-cookie';
|
|||
import _ from 'underscore';
|
||||
import bp from './breakpoints';
|
||||
|
||||
export default class NewNavSidebar {
|
||||
export default class ContextualSidebar {
|
||||
constructor() {
|
||||
this.initDomElements();
|
||||
this.render();
|
||||
|
@ -55,7 +55,7 @@ export default class NewNavSidebar {
|
|||
this.$sidebar.toggleClass('sidebar-icons-only', collapsed);
|
||||
this.$page.toggleClass('page-with-icon-sidebar', breakpoint === 'sm' ? true : collapsed);
|
||||
}
|
||||
NewNavSidebar.setCollapsedCookie(collapsed);
|
||||
ContextualSidebar.setCollapsedCookie(collapsed);
|
||||
|
||||
this.toggleSidebarOverflow();
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
/* eslint-disable func-names, space-before-function-paren, no-var, prefer-arrow-callback, no-unused-vars, one-var, one-var-declaration-per-line, vars-on-top, max-len */
|
||||
import _ from 'underscore';
|
||||
import Cookies from 'js-cookie';
|
||||
import NewNavSidebar from './new_sidebar';
|
||||
import ContextualSidebar from './contextual_sidebar';
|
||||
import initFlyOutNav from './fly_out_nav';
|
||||
|
||||
(function() {
|
||||
|
@ -51,8 +51,8 @@ import initFlyOutNav from './fly_out_nav';
|
|||
});
|
||||
|
||||
$(() => {
|
||||
const newNavSidebar = new NewNavSidebar();
|
||||
newNavSidebar.bindEvents();
|
||||
const contextualSidebar = new ContextualSidebar();
|
||||
contextualSidebar.bindEvents();
|
||||
|
||||
initFlyOutNav();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue