self.isPresentationMode.subscribe(newValue => { if (!newValue) { self.cancelExecutingAll(); } huePubSub.publish('editor.presentation.operate.toggle', newValue); // Problem with headers / row numbers redraw on full screen results vm.togglePresentationMode(); if (newValue) { hueAnalytics.convert('editor', 'presentation'); } });
self.leftAssistVisible.subscribe(val => { if (!self.assistWithoutStorage()) { apiHelper.setInTotalStorage('assist', 'left_assist_panel_visible', val); } hueAnalytics.convert('hue', 'leftAssistVisible/' + val); window.setTimeout(() => { huePubSub.publish('split.panel.resized'); $(window).trigger('resize'); }, 0); });
self.leftNavVisible.subscribe(val => { huePubSub.publish('left.nav.open.toggle', val); hueAnalytics.convert('hue', 'leftNavVisible/' + val); if (val) { // Defer or it will be triggered by the open click window.setTimeout(() => { $(document).one('click', () => { if (self.leftNavVisible()) { self.leftNavVisible(false); } }); }, 0); } });