mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-11-17 23:46:41 +01:00
Only show prompt close button when it is needed (#3001)
This commit is contained in:
parent
cb0349d365
commit
a3a20a64b1
@ -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>
|
||||
|
@ -27,6 +27,10 @@ export default Vue.extend({
|
||||
optionValues: {
|
||||
type: Array,
|
||||
default: () => { return [] }
|
||||
},
|
||||
showClose: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data: function () {
|
||||
|
@ -34,6 +34,7 @@
|
||||
@click="$emit('click', optionValues[index])"
|
||||
/>
|
||||
<ft-button
|
||||
v-if="showClose"
|
||||
:id="'prompt-' + sanitizedLabel + '-close'"
|
||||
:label="$t('Close')"
|
||||
tabindex="0"
|
||||
|
Loading…
Reference in New Issue
Block a user