[frontend] Save sidebar collapsed state in total storage and have it open by default
{ displayName: 'Importer', url: '/indexer/importer', icon: 'hdfs' }
]
}]);
- self.collapsed = ko.observable(true);
+ self.collapsed = ko.observable();
self.collapsed.subscribe(function (newVal) {
if (newVal) {
$(element).addClass('collapsed')
$(element).removeClass('collapsed')
}
});
+ ApiHelper.getInstance().withTotalStorage('sidebar', 'collapsed', self.collapsed, false);
self.activeUrl = ko.observable();
