File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
adminforth/documentation/docs/tutorial/08-Plugins Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -439,10 +439,10 @@ For example:
439439` ` ` ts
440440 ...
441441// diff-add
442- import { useJobInfoStore } from ' @/custom/plugins/BackgroundJobsPlugin/useBackgroundJobPlugin .ts' ;
442+ import { useBackgroundJobApi } from ' @/custom/plugins/BackgroundJobsPlugin/useBackgroundJobApi .ts' ;
443443
444444 // diff-add
445- const jobInfoStore = useJobInfoStore ();
445+ const backgroundJobApi = useBackgroundJobApi ();
446446
447447 const res = await callAdminForthApi ({
448448 path: ` /plugin/${props .meta .pluginInstanceId }/translate-selected-to-languages ` ,
@@ -458,7 +458,7 @@ For example:
458458 const jobId = res .jobId ;
459459 if (jobId ) {
460460 // diff-add
461- jobInfoStore .openJobInfoPopup (jobId );
461+ backgroundJobApi .openJobInfoPopup (jobId );
462462 }
463463 }
464464
You can’t perform that action at this time.
0 commit comments