mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
[web] Beautify code
The source code has been beautified to follow the coding standards.
This commit is contained in:
@@ -49,9 +49,9 @@
|
||||
v-text="composer"
|
||||
/>
|
||||
<h3 class="subtitle is-6" v-text="now_playing.album" />
|
||||
<h3
|
||||
<h3
|
||||
v-if="filepath"
|
||||
class="subtitle is-6 has-text-grey "
|
||||
class="subtitle is-6 has-text-grey"
|
||||
v-text="filepath"
|
||||
/>
|
||||
</div>
|
||||
@@ -147,10 +147,9 @@ export default {
|
||||
return this.now_playing.path
|
||||
}
|
||||
return null
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
watch: {
|
||||
state() {
|
||||
if (this.interval_id > 0) {
|
||||
|
||||
@@ -121,11 +121,15 @@ export default {
|
||||
},
|
||||
|
||||
open_remove_podcast_dialog: function () {
|
||||
webapi.library_track_playlists(this.tracks.items[0].id).then(({ data }) => {
|
||||
this.rss_playlist_to_remove = data.items.filter((pl) => pl.type === 'rss')[0]
|
||||
this.show_remove_podcast_modal = true
|
||||
this.show_details_modal = false
|
||||
})
|
||||
webapi
|
||||
.library_track_playlists(this.tracks.items[0].id)
|
||||
.then(({ data }) => {
|
||||
this.rss_playlist_to_remove = data.items.filter(
|
||||
(pl) => pl.type === 'rss'
|
||||
)[0]
|
||||
this.show_remove_podcast_modal = true
|
||||
this.show_details_modal = false
|
||||
})
|
||||
},
|
||||
|
||||
remove_podcast: function () {
|
||||
|
||||
@@ -208,13 +208,13 @@ export default {
|
||||
locale: {
|
||||
get() {
|
||||
let languages = this.$i18n.availableLocales
|
||||
let locale = languages.find(lang => lang === this.$i18n.locale)
|
||||
let locale = languages.find((lang) => lang === this.$i18n.locale)
|
||||
let partial = this.$i18n.locale.split('-')[0]
|
||||
if (!locale) {
|
||||
locale = languages.find(lang => lang === partial)
|
||||
locale = languages.find((lang) => lang === partial)
|
||||
}
|
||||
if (!locale) {
|
||||
locale = languages.forEach(lang => lang.split('-')[0] === partial)
|
||||
locale = languages.forEach((lang) => lang.split('-')[0] === partial)
|
||||
}
|
||||
return locale
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user