File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 130130 searchRequest .data = searchCriterion ;
131131
132132 await this .$accessor .exercises .fetch (searchRequest );
133+
134+ this .$emit (' fetch' );
133135 }
134136 }
135137 </script >
Original file line number Diff line number Diff line change 2020 </PanelItem >
2121
2222 <PanelItem :is-active =" $auth.loggedIn" >
23- <FavoritePanel />
23+ <FavoritePanel @fetch = " setInput " />
2424 </PanelItem >
2525 </Panel >
2626 <ExercisesPanel @reset =" resetInput" />
9292 this .inputText .value = " "
9393 }
9494
95- mounted () {
95+ setInput () {
9696 const title = this .$accessor .exercises .search_criterion .title ;
97- this .inputText .value = !! title ? title : ' '
97+ this .inputText .value = !! title ? title : ' ' ;
98+ }
99+
100+ mounted() {
101+ this .setInput ();
98102 }
99103 }
100104 </script >
You can’t perform that action at this time.
0 commit comments