mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-06 20:33:10 -05:00
[web] Simplify translations
This commit is contained in:
@@ -38,13 +38,9 @@ export default {
|
||||
value: { required: true, type: [String, Number] }
|
||||
},
|
||||
emits: ['update:value'],
|
||||
|
||||
data() {
|
||||
return {
|
||||
active: false
|
||||
}
|
||||
return { active: false }
|
||||
},
|
||||
|
||||
computed: {
|
||||
option: {
|
||||
get() {
|
||||
@@ -52,7 +48,6 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
deactivate() {
|
||||
this.active = false
|
||||
|
||||
@@ -40,9 +40,9 @@ export default {
|
||||
return [{ key: 'dialog.add.rss.processing', icon: 'web' }]
|
||||
}
|
||||
return [
|
||||
{ key: 'dialog.add.rss.cancel', handler: this.cancel, icon: 'cancel' },
|
||||
{ key: 'actions.cancel', handler: this.cancel, icon: 'cancel' },
|
||||
{
|
||||
key: 'dialog.add.rss.add',
|
||||
key: 'actions.add',
|
||||
disabled: this.disabled,
|
||||
handler: this.add,
|
||||
icon: 'playlist-plus'
|
||||
|
||||
@@ -41,19 +41,15 @@ export default {
|
||||
return [{ key: 'dialog.add.stream.processing', icon: 'web' }]
|
||||
}
|
||||
return [
|
||||
{ key: 'actions.cancel', handler: this.cancel, icon: 'cancel' },
|
||||
{
|
||||
key: 'dialog.add.stream.cancel',
|
||||
handler: this.cancel,
|
||||
icon: 'cancel'
|
||||
},
|
||||
{
|
||||
key: 'dialog.add.stream.add',
|
||||
key: 'actions.add',
|
||||
disabled: this.disabled,
|
||||
handler: this.add,
|
||||
icon: 'playlist-plus'
|
||||
},
|
||||
{
|
||||
key: 'dialog.add.stream.play',
|
||||
key: 'actions.play',
|
||||
disabled: this.disabled,
|
||||
handler: this.play,
|
||||
icon: 'play'
|
||||
|
||||
@@ -25,13 +25,11 @@ export default {
|
||||
if (this.media_kind_resolved === 'podcast') {
|
||||
if (this.item.data_kind === 'url') {
|
||||
return [
|
||||
{ key: 'dialog.album.mark-as-played', handler: this.mark_played },
|
||||
{ key: 'dialog.album.remove-podcast', handler: this.remove_podcast }
|
||||
{ key: 'actions.mark-as-played', handler: this.mark_played },
|
||||
{ key: 'actions.remove-podcast', handler: this.remove_podcast }
|
||||
]
|
||||
}
|
||||
return [
|
||||
{ key: 'dialog.album.mark-as-played', handler: this.mark_played }
|
||||
]
|
||||
return [{ key: 'actions.mark-as-played', handler: this.mark_played }]
|
||||
}
|
||||
return []
|
||||
},
|
||||
|
||||
@@ -34,17 +34,13 @@ export default {
|
||||
computed: {
|
||||
actions() {
|
||||
return [
|
||||
{ key: 'actions.add', handler: this.queue_add, icon: 'playlist-plus' },
|
||||
{
|
||||
key: 'dialog.playable.add',
|
||||
handler: this.queue_add,
|
||||
icon: 'playlist-plus'
|
||||
},
|
||||
{
|
||||
key: 'dialog.playable.add-next',
|
||||
key: 'actions.add-next',
|
||||
handler: this.queue_add_next,
|
||||
icon: 'playlist-play'
|
||||
},
|
||||
{ key: 'dialog.playable.play', handler: this.play, icon: 'play' }
|
||||
{ key: 'actions.play', handler: this.play, icon: 'play' }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
@@ -50,13 +50,9 @@ export default {
|
||||
return [{ key: 'dialog.playlist.save.saving', icon: 'web' }]
|
||||
}
|
||||
return [
|
||||
{ key: 'actions.cancel', handler: this.cancel, icon: 'cancel' },
|
||||
{
|
||||
key: 'dialog.playlist.save.cancel',
|
||||
handler: this.cancel,
|
||||
icon: 'cancel'
|
||||
},
|
||||
{
|
||||
key: 'dialog.playlist.save.save',
|
||||
key: 'actions.save',
|
||||
disabled: this.disabled,
|
||||
handler: this.save,
|
||||
icon: 'download'
|
||||
|
||||
@@ -29,16 +29,8 @@ export default {
|
||||
computed: {
|
||||
actions() {
|
||||
return [
|
||||
{
|
||||
key: this.$t('dialog.queue-item.remove'),
|
||||
handler: this.remove,
|
||||
icon: 'delete'
|
||||
},
|
||||
{
|
||||
key: this.$t('dialog.queue-item.play'),
|
||||
handler: this.play,
|
||||
icon: 'play'
|
||||
}
|
||||
{ key: 'actions.remove', handler: this.remove, icon: 'delete' },
|
||||
{ key: 'actions.play', handler: this.play, icon: 'play' }
|
||||
]
|
||||
},
|
||||
playable() {
|
||||
|
||||
@@ -46,16 +46,8 @@ export default {
|
||||
computed: {
|
||||
actions() {
|
||||
return [
|
||||
{
|
||||
key: 'dialog.remote-pairing.cancel',
|
||||
handler: this.cancel,
|
||||
icon: 'cancel'
|
||||
},
|
||||
{
|
||||
key: 'dialog.remote-pairing.pair',
|
||||
handler: this.pair,
|
||||
icon: 'cellphone'
|
||||
}
|
||||
{ key: 'actions.cancel', handler: this.cancel, icon: 'cancel' },
|
||||
{ key: 'actions.pair', handler: this.pair, icon: 'cellphone' }
|
||||
]
|
||||
},
|
||||
pairing() {
|
||||
|
||||
@@ -22,8 +22,8 @@ export default {
|
||||
return []
|
||||
}
|
||||
return this.item.play_count > 0
|
||||
? [{ key: 'dialog.track.mark-as-new', handler: this.mark_new }]
|
||||
: [{ key: 'dialog.track.mark-as-played', handler: this.mark_played }]
|
||||
? [{ key: 'actions.mark-as-new', handler: this.mark_new }]
|
||||
: [{ key: 'actions.mark-as-played', handler: this.mark_played }]
|
||||
},
|
||||
playable() {
|
||||
return {
|
||||
|
||||
@@ -67,15 +67,11 @@ export default {
|
||||
computed: {
|
||||
actions() {
|
||||
const actions = [
|
||||
{
|
||||
key: 'dialog.update.cancel',
|
||||
handler: this.cancel,
|
||||
icon: 'cancel'
|
||||
}
|
||||
{ key: 'actions.cancel', handler: this.cancel, icon: 'cancel' }
|
||||
]
|
||||
if (!this.libraryStore.updating) {
|
||||
actions.push({
|
||||
key: 'dialog.update.rescan',
|
||||
key: 'actions.rescan',
|
||||
handler: this.analyse,
|
||||
icon: 'check'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user