mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-11-22 09:56:23 +01:00
Improve destructive action label clarity
This commit is contained in:
parent
62ad7d987a
commit
7056778872
@ -19,8 +19,8 @@
|
||||
<ft-prompt
|
||||
v-if="showRestartPrompt"
|
||||
:label="$t('Settings[\'The app needs to restart for changes to take effect. Restart and apply change?\']')"
|
||||
:option-names="[$t('Yes'), $t('No')]"
|
||||
:option-values="['yes', 'no']"
|
||||
:option-names="[$t('Yes, Restart'), $t('Cancel')]"
|
||||
:option-values="['restart', 'cancel']"
|
||||
:is-first-option-destructive="true"
|
||||
@click="handleReplaceHttpCache"
|
||||
/>
|
||||
|
@ -34,8 +34,8 @@ export default defineComponent({
|
||||
subscriptions: [],
|
||||
selectedLength: 0,
|
||||
deletePromptValues: [
|
||||
'yes',
|
||||
'no'
|
||||
'delete',
|
||||
'cancel'
|
||||
]
|
||||
}
|
||||
},
|
||||
@ -61,8 +61,8 @@ export default defineComponent({
|
||||
},
|
||||
deletePromptNames: function () {
|
||||
return [
|
||||
this.$t('Yes'),
|
||||
this.$t('No')
|
||||
this.$t('Yes, Delete'),
|
||||
this.$t('Cancel')
|
||||
]
|
||||
},
|
||||
locale: function () {
|
||||
|
@ -36,8 +36,8 @@ export default defineComponent({
|
||||
profileBgColor: '',
|
||||
profileTextColor: '',
|
||||
deletePromptValues: [
|
||||
'yes',
|
||||
'no'
|
||||
'delete',
|
||||
'cancel'
|
||||
]
|
||||
}
|
||||
},
|
||||
@ -62,8 +62,8 @@ export default defineComponent({
|
||||
},
|
||||
deletePromptNames: function () {
|
||||
return [
|
||||
this.$t('Yes'),
|
||||
this.$t('No')
|
||||
this.$t('Yes, Delete'),
|
||||
this.$t('Cancel')
|
||||
]
|
||||
}
|
||||
},
|
||||
@ -84,7 +84,7 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
handleDeletePrompt: function (response) {
|
||||
if (response === 'yes') {
|
||||
if (response === 'delete') {
|
||||
this.deleteProfile()
|
||||
} else {
|
||||
this.showDeletePrompt = false
|
||||
|
@ -23,8 +23,8 @@ export default defineComponent({
|
||||
showRemoveHistoryPrompt: false,
|
||||
showRemoveSubscriptionsPrompt: false,
|
||||
promptValues: [
|
||||
'yes',
|
||||
'no'
|
||||
'delete',
|
||||
'cancel'
|
||||
]
|
||||
}
|
||||
},
|
||||
@ -50,8 +50,8 @@ export default defineComponent({
|
||||
},
|
||||
promptNames: function () {
|
||||
return [
|
||||
this.$t('Yes'),
|
||||
this.$t('No')
|
||||
this.$t('Yes, Delete'),
|
||||
this.$t('Cancel')
|
||||
]
|
||||
}
|
||||
},
|
||||
@ -59,7 +59,7 @@ export default defineComponent({
|
||||
handleSearchCache: function (option) {
|
||||
this.showSearchCachePrompt = false
|
||||
|
||||
if (option === 'yes') {
|
||||
if (option === 'delete') {
|
||||
this.clearSessionSearchHistory()
|
||||
showToast(this.$t('Settings.Privacy Settings.Search cache has been cleared'))
|
||||
}
|
||||
@ -83,7 +83,7 @@ export default defineComponent({
|
||||
handleRemoveHistory: function (option) {
|
||||
this.showRemoveHistoryPrompt = false
|
||||
|
||||
if (option === 'yes') {
|
||||
if (option === 'delete') {
|
||||
this.removeAllHistory()
|
||||
showToast(this.$t('Settings.Privacy Settings.Watch history has been cleared'))
|
||||
}
|
||||
@ -94,7 +94,7 @@ export default defineComponent({
|
||||
|
||||
this.updateActiveProfile(MAIN_PROFILE_ID)
|
||||
|
||||
if (option !== 'yes') { return }
|
||||
if (option !== 'delete') { return }
|
||||
|
||||
this.profileList.forEach((profile) => {
|
||||
if (profile._id === MAIN_PROFILE_ID) {
|
||||
|
@ -26,8 +26,8 @@ export default defineComponent({
|
||||
disableSmoothScrollingToggleValue: false,
|
||||
showRestartPrompt: false,
|
||||
restartPromptValues: [
|
||||
'yes',
|
||||
'no'
|
||||
'restart',
|
||||
'cancel'
|
||||
],
|
||||
baseThemeValues: [
|
||||
'system',
|
||||
@ -88,8 +88,8 @@ export default defineComponent({
|
||||
|
||||
restartPromptNames: function () {
|
||||
return [
|
||||
this.$t('Yes'),
|
||||
this.$t('No')
|
||||
this.$t('Yes, Restart'),
|
||||
this.$t('Cancel')
|
||||
]
|
||||
},
|
||||
|
||||
@ -146,7 +146,7 @@ export default defineComponent({
|
||||
handleSmoothScrolling: function (value) {
|
||||
this.showRestartPrompt = false
|
||||
|
||||
if (value === null || value === 'no') {
|
||||
if (value === null || value === 'cancel') {
|
||||
this.disableSmoothScrollingToggleValue = !this.disableSmoothScrollingToggleValue
|
||||
return
|
||||
}
|
||||
|
@ -939,3 +939,6 @@ Hashtag:
|
||||
Yes: Yes
|
||||
No: No
|
||||
Ok: Ok
|
||||
Yes, Delete: Yes, Delete
|
||||
Yes, Restart: Yes, Restart
|
||||
Cancel: Cancel
|
||||
|
Loading…
Reference in New Issue
Block a user