From 5412fb6a567bd573bfd72d7f2ec471a5f2cbb6a6 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Thu, 30 Jun 2022 02:31:04 +1000 Subject: Fix info-modal not triggering tutorial-advance after closure --- src/App.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/App.vue b/src/App.vue index 6ec3f8d..ab16c00 100644 --- a/src/App.vue +++ b/src/App.vue @@ -221,6 +221,12 @@ export default defineComponent({ }, }, watch: { + infoModalNodeName(newVal, oldVal){ + // Possibly trigger tutorial advance + if (newVal == null){ + this.handleActionForTutorial('tileInfo'); + } + }, modeRunning(newVal, oldVal){ // For sweepToParent setting 'fallback', temporarily change to 'prefer' for efficiency if (newVal != null){ @@ -451,7 +457,6 @@ export default defineComponent({ }, // For tile-info events async onInfoClick(nodeName: string){ - this.handleActionForTutorial('tileInfo'); if (!this.searchOpen){ // Close an active non-search mode this.resetMode(); } -- cgit v1.2.3