Only show prompt close button when it is needed (#3001)

This commit is contained in:
absidue 2022-12-27 03:20:32 +01:00 committed by GitHub
parent cb0349d365
commit a3a20a64b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,7 @@
:label="$t('Settings.Data Settings.Select Export Type')"
:option-names="exportSubscriptionsPromptNames"
:option-values="subscriptionsPromptValues"
:show-close="true"
@click="exportSubscriptions"
/>
</ft-settings-section>

View File

@ -27,6 +27,10 @@ export default Vue.extend({
optionValues: {
type: Array,
default: () => { return [] }
},
showClose: {
type: Boolean,
default: false
}
},
data: function () {

View File

@ -34,6 +34,7 @@
@click="$emit('click', optionValues[index])"
/>
<ft-button
v-if="showClose"
:id="'prompt-' + sanitizedLabel + '-close'"
:label="$t('Close')"
tabindex="0"