aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-30 02:31:04 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-30 02:31:04 +1000
commit5412fb6a567bd573bfd72d7f2ec471a5f2cbb6a6 (patch)
treeeb22a7d7e023df3860888a33582f1dde1a3d24ec /src/App.vue
parent932d89f6f1a1d003b480b63aa80489f16910e0da (diff)
Fix info-modal not triggering tutorial-advance after closure
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue7
1 files changed, 6 insertions, 1 deletions
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();
}