608608import HotTable from " @handsontable/vue" ;
609609import axios from " axios" ;
610610import BootstrapVue from " bootstrap-vue" ;
611+ import { mapActions } from " pinia" ;
611612import _ from " underscore" ;
612613import Vue from " vue" ;
613614
@@ -619,7 +620,6 @@ import { getAppRoot } from "@/onload/loadConfig";
619620import { useHistoryStore } from " @/stores/historyStore" ;
620621import _l from " @/utils/localization" ;
621622import { errorMessageAsString } from " @/utils/simple-error" ;
622- import { startWatchingHistory } from " @/watch/watchHistoryProvided" ;
623623
624624import GButton from " ./BaseComponents/GButton.vue" ;
625625import ColumnSelector from " @/components/RuleBuilder/ColumnSelector.vue" ;
@@ -1327,6 +1327,7 @@ export default {
13271327 }
13281328 },
13291329 methods: {
1330+ ... mapActions (useHistoryStore, [" startWatchingHistory" ]),
13301331 restoreRules (event ) {
13311332 const json = JSON .parse (event );
13321333 this .rules = json .rules ;
@@ -1445,7 +1446,7 @@ export default {
14451446 this .mapping .splice (index, 1 );
14461447 },
14471448 refreshAndWait (response ) {
1448- startWatchingHistory ();
1449+ this . startWatchingHistory ();
14491450 this .waitOnJob (response);
14501451 },
14511452 waitOnJob (response ) {
@@ -1461,7 +1462,7 @@ export default {
14611462 " Unknown error encountered while running your upload job, this could be a server issue or a problem with the upload definition." ;
14621463 this .doFullJobCheck (jobId);
14631464 } else {
1464- startWatchingHistory ();
1465+ this . startWatchingHistory ();
14651466 this .$emit (" onCreate" , jobResponse .data );
14661467 if (this .oncreate ) {
14671468 // legacy non-event handling
0 commit comments