File tree Expand file tree Collapse file tree 5 files changed +0
-44
lines changed
kolibri/plugins/learn/assets/src Expand file tree Collapse file tree 5 files changed +0
-44
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,6 @@ class LearnModule extends KolibriModule {
3838 actions . redirectToChannelSearch ( store ) ;
3939 } ,
4040 } ,
41- {
42- name : PageNames . SCRATCHPAD ,
43- path : '/scratchpad' ,
44- handler : ( toRoute , fromRoute ) => {
45- actions . showScratchpad ( store ) ;
46- } ,
47- } ,
4841 {
4942 name : PageNames . CONTENT_UNAVAILABLE ,
5043 path : '/content-unavailable' ,
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ const PageNames = {
77 LEARN_ROOT : 'LEARN_ROOT' ,
88 LEARN_CHANNEL : 'LEARN_CHANNEL' ,
99 LEARN_CONTENT : 'LEARN_CONTENT' ,
10- SCRATCHPAD : 'SCRATCHPAD' ,
1110 CONTENT_UNAVAILABLE : 'CONTENT_UNAVAILABLE' ,
1211 SEARCH_ROOT : 'SEARCH_ROOT' ,
1312 SEARCH : 'SEARCH' ,
Original file line number Diff line number Diff line change @@ -463,14 +463,6 @@ function clearSearch(store) {
463463 } ) ;
464464}
465465
466- function showScratchpad ( store ) {
467- store . dispatch ( 'SET_PAGE_NAME' , PageNames . SCRATCHPAD ) ;
468- store . dispatch ( 'SET_PAGE_STATE' , { } ) ;
469- store . dispatch ( 'CORE_SET_PAGE_LOADING' , false ) ;
470- store . dispatch ( 'CORE_SET_ERROR' , null ) ;
471- store . dispatch ( 'CORE_SET_TITLE' , 'Scratchpad' ) ;
472- }
473-
474466function showContentUnavailable ( store ) {
475467 store . dispatch ( 'SET_PAGE_NAME' , PageNames . CONTENT_UNAVAILABLE ) ;
476468 store . dispatch ( 'SET_PAGE_STATE' , { } ) ;
@@ -807,7 +799,6 @@ export {
807799 showExploreContent ,
808800 showLearnChannel ,
809801 showLearnContent ,
810- showScratchpad ,
811802 showContentUnavailable ,
812803 triggerSearch ,
813804 clearSearch ,
Original file line number Diff line number Diff line change 5656 import explorePage from ' ./explore-page' ;
5757 import contentPage from ' ./content-page' ;
5858 import learnPage from ' ./learn-page' ;
59- import scratchpadPage from ' ./scratchpad-page' ;
6059 import contentUnavailablePage from ' ./content-unavailable-page' ;
6160 import coreBase from ' kolibri.coreVue.components.coreBase' ;
6261 import channelSwitcher from ' ./channel-switcher' ;
8180 explorePage,
8281 contentPage,
8382 learnPage,
84- scratchpadPage,
8583 contentUnavailablePage,
8684 coreBase,
8785 channelSwitcher,
147145 if (this .pageName === PageNames .LEARN_CHANNEL ) {
148146 return ' learn-page' ;
149147 }
150- if (this .pageName === PageNames .SCRATCHPAD ) {
151- return ' scratchpad-page' ;
152- }
153148 if (this .pageName === PageNames .CONTENT_UNAVAILABLE ) {
154149 return ' content-unavailable-page' ;
155150 }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments