From b42de6c9c25508b46f1287e849f575cb28d99483 Mon Sep 17 00:00:00 2001 From: Francesco Torchia Date: Fri, 11 Aug 2023 16:15:42 +0200 Subject: [PATCH 1/2] shell, Add closeOnClickOutside option to PromptModal --- shell/components/PromptModal.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell/components/PromptModal.vue b/shell/components/PromptModal.vue index e8ce71ebe3d..03c39058b49 100644 --- a/shell/components/PromptModal.vue +++ b/shell/components/PromptModal.vue @@ -42,6 +42,9 @@ export default { const isSticky = !!this.modalData?.modalSticky; return !isSticky ? '' : 'display: flex; flex-direction: column; '; + }, + closeOnClickOutside() { + return this.modalData?.closeOnClickOutside; } }, @@ -85,6 +88,7 @@ export default { :styles="`background-color: var(--nav-bg); border-radius: var(--border-radius); ${stickyProps} max-height: 95vh; ${cssProps}`" height="auto" :scrollable="true" + :click-to-close="closeOnClickOutside" @closed="close()" > Date: Fri, 11 Aug 2023 16:16:16 +0200 Subject: [PATCH 2/2] Bump shell, from 0.3.19 to 0.3.20 Signed-off-by: Francesco Torchia --- shell/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/package.json b/shell/package.json index 4c74bf694e6..9b6c5be7bb3 100644 --- a/shell/package.json +++ b/shell/package.json @@ -1,6 +1,6 @@ { "name": "@rancher/shell", - "version": "0.3.19", + "version": "0.3.20", "description": "Rancher Dashboard Shell", "repository": "https://github.com/rancherlabs/dashboard", "license": "Apache-2.0",