From 893c5bfc0564e5baace0ded1338a0324d661ca9b Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Mon, 26 Dec 2022 10:51:09 +0100 Subject: [PATCH] Only show prompt close button when it is needed --- src/renderer/components/data-settings/data-settings.vue | 1 + src/renderer/components/ft-prompt/ft-prompt.js | 4 ++++ src/renderer/components/ft-prompt/ft-prompt.vue | 1 + 3 files changed, 6 insertions(+) diff --git a/src/renderer/components/data-settings/data-settings.vue b/src/renderer/components/data-settings/data-settings.vue index 2d842a802727a..efe753c0e962e 100644 --- a/src/renderer/components/data-settings/data-settings.vue +++ b/src/renderer/components/data-settings/data-settings.vue @@ -48,6 +48,7 @@ :label="$t('Settings.Data Settings.Select Export Type')" :option-names="exportSubscriptionsPromptNames" :option-values="subscriptionsPromptValues" + :show-close="true" @click="exportSubscriptions" /> diff --git a/src/renderer/components/ft-prompt/ft-prompt.js b/src/renderer/components/ft-prompt/ft-prompt.js index 309f7d015dbd2..22b6c2bf0212a 100644 --- a/src/renderer/components/ft-prompt/ft-prompt.js +++ b/src/renderer/components/ft-prompt/ft-prompt.js @@ -27,6 +27,10 @@ export default Vue.extend({ optionValues: { type: Array, default: () => { return [] } + }, + showClose: { + type: Boolean, + default: false } }, data: function () { diff --git a/src/renderer/components/ft-prompt/ft-prompt.vue b/src/renderer/components/ft-prompt/ft-prompt.vue index ba9e2272e3ee8..7f02421031f69 100644 --- a/src/renderer/components/ft-prompt/ft-prompt.vue +++ b/src/renderer/components/ft-prompt/ft-prompt.vue @@ -34,6 +34,7 @@ @click="$emit('click', optionValues[index])" />