Skip to content

Commit

Permalink
🪲 fix: cancel with tab props
Browse files Browse the repository at this point in the history
  • Loading branch information
unickhow committed May 16, 2023
1 parent 2385c3a commit 3f6e052
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/DatetimeString.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ function handleGenerate () {
}
function handleCancel () {
parent.postMessage({ pluginMessage: { action: 'cancel' } }, '*')
parent.postMessage({
pluginMessage: {
tab: 'dateTime',
action: 'cancel'
}
}, '*')
}
</script>

Expand Down
7 changes: 6 additions & 1 deletion src/components/NumericString.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ function handleGenerate () {
}
function handleCancel () {
parent.postMessage({ pluginMessage: { action: 'cancel' } }, '*')
parent.postMessage({
pluginMessage: {
tab: 'numeric',
action: 'cancel'
}
}, '*')
}
</script>

Expand Down

0 comments on commit 3f6e052

Please sign in to comment.