From f5a024cd388c7ded6797e139ba70582d6eb48ebd Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Mon, 6 Nov 2023 10:12:33 +0000 Subject: [PATCH 1/2] add toggle action to invokers dialog --- site/src/pages/components/invokers.explainer.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/site/src/pages/components/invokers.explainer.mdx b/site/src/pages/components/invokers.explainer.mdx index 70d4c5d7e..50670dba0 100644 --- a/site/src/pages/components/invokers.explainer.mdx +++ b/site/src/pages/components/invokers.explainer.mdx @@ -373,6 +373,7 @@ that this list is ordered and higher rules take precedence: | `<* popover>` | `'showPopover'` | Call `.showPopover()` on the invokee | | `` | `'auto'` | If the `` is not `open`, call `showModal()`, otherwise cancel the dialog | | `` | `'toggleModal'` | If the `` is not `open`, call `showModal()`, otherwise cancel the dialog | +| `` | `'toggle'` | If the `` is not `open`, call `show()`, otherwise cancel the dialog | | `` | `'cancel'` | If the `` is `open`, cancel the dialog | | `` | `'showModal'` | If the `` is not `open`, call `showModal()` | | `` | `'close'` | If the `` is `open`, close and use the button `value` for returnValue | From f4a7ede144bee35832742fc90fc38a337aafebb6 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Thu, 16 Nov 2023 10:48:39 +0000 Subject: [PATCH 2/2] Update site/src/pages/components/invokers.explainer.mdx Co-authored-by: Luke Warlow --- site/src/pages/components/invokers.explainer.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/pages/components/invokers.explainer.mdx b/site/src/pages/components/invokers.explainer.mdx index 50670dba0..7668dd7e5 100644 --- a/site/src/pages/components/invokers.explainer.mdx +++ b/site/src/pages/components/invokers.explainer.mdx @@ -373,7 +373,7 @@ that this list is ordered and higher rules take precedence: | `<* popover>` | `'showPopover'` | Call `.showPopover()` on the invokee | | `` | `'auto'` | If the `` is not `open`, call `showModal()`, otherwise cancel the dialog | | `` | `'toggleModal'` | If the `` is not `open`, call `showModal()`, otherwise cancel the dialog | -| `` | `'toggle'` | If the `` is not `open`, call `show()`, otherwise cancel the dialog | +| `` | `'toggle'` | If the `` is not `open`, call `show()`, otherwise close the dialog | | `` | `'cancel'` | If the `` is `open`, cancel the dialog | | `` | `'showModal'` | If the `` is not `open`, call `showModal()` | | `` | `'close'` | If the `` is `open`, close and use the button `value` for returnValue |