Skip to content

Commit

Permalink
emit continue event from cancellation modal, reset in event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Jan 29, 2024
1 parent 618fe47 commit 9f64cc0
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,10 @@
<script>
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
import { injectQuizCreation } from '../../../composables/useQuizCreation';
export default {
name: 'ConfirmCancellationModal',
mixins: [commonCoreStrings],
setup() {
const {
//Computed
resetWorkingResourcePool,
} = injectQuizCreation();
return {
resetWorkingResourcePool,
};
},
props: {
closePanelRoute: {
type: Object,
Expand All @@ -67,7 +56,7 @@
},
methods: {
handleContinueAction() {
this.resetWorkingResourcePool();
this.$emit('continue');
this.$router.replace(this.closePanelRoute);
},
closeModal() {
Expand Down

0 comments on commit 9f64cc0

Please sign in to comment.