summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAnnabel Dunstone Gray <annabel.dunstone@gmail.com>2017-09-11 07:30:43 +0000
committerPhil Hughes <me@iamphill.com>2017-09-11 07:30:43 +0000
commitd93d1f9eed3a0a37b490f504beb673cce78dbe17 (patch)
tree3614535f9e37d3fbcfe31331affcea5d9a9e2817 /app
parentce14fae5d43247a838debeb5dda7871845d127c8 (diff)
downloadgitlab-ce-d93d1f9eed3a0a37b490f504beb673cce78dbe17.tar.gz
Check for sidebar cookie instead of class when resizing window
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/new_sidebar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/new_sidebar.js b/app/assets/javascripts/new_sidebar.js
index fbe474f2f61..cea4f35096a 100644
--- a/app/assets/javascripts/new_sidebar.js
+++ b/app/assets/javascripts/new_sidebar.js
@@ -68,7 +68,7 @@ export default class NewNavSidebar {
if (breakpoint === 'sm' || breakpoint === 'md') {
this.toggleCollapsedSidebar(true);
} else if (breakpoint === 'lg') {
- const collapse = this.$sidebar.hasClass('sidebar-icons-only');
+ const collapse = Cookies.get('sidebar_collapsed') === 'true';
this.toggleCollapsedSidebar(collapse);
}
}