mirror of
https://github.com/Arcadia-Solutions/arcadia.git
synced 2026-02-05 08:29:00 -06:00
proper display for titles other than software, in master group
This commit is contained in:
File diff suppressed because one or more lines are too long
5
frontend/public/logos/platforms/music.svg
Normal file
5
frontend/public/logos/platforms/music.svg
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M9 20C9 21.1046 7.65685 22 6 22C4.34315 22 3 21.1046 3 20C3 18.8954 4.34315 18 6 18C7.65685 18 9 18.8954 9 20ZM9 20V10M20 18V6M20 6V3.4277C20 2.73374 19.3104 2.25075 18.6583 2.48791L9.65826 5.76063C9.26307 5.90434 9 6.27992 9 6.70043V10M20 6L9 10" stroke="#d1d1d1" stroke-linejoin="round"/>
|
||||
<ellipse cx="17" cy="18" rx="3" ry="2" stroke="#d1d1d1" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 530 B |
@@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<a v-tooltip.top="title_group.platform" :href="`/title-group?id=${title_group.id}`">
|
||||
<img :src="`logos/platforms/${title_group.platform}.svg`" />
|
||||
<a
|
||||
v-tooltip.top="title_group.platform ?? title_group.name"
|
||||
:href="`/title-group?id=${title_group.id}`"
|
||||
>
|
||||
<img :src="`logos/platforms/${title_group.platform ?? title_group.content_type}.svg`" />
|
||||
</a>
|
||||
</template>
|
||||
|
||||
@@ -307,7 +307,7 @@ export default {
|
||||
if (values.platform == '') {
|
||||
errors.platform = [{ message: 'Select a platform' }]
|
||||
}
|
||||
if (values.original_language == '') {
|
||||
if (this.content_type !== 'music' && values.original_language == '') {
|
||||
errors.original_language = [{ message: 'Select a language' }]
|
||||
}
|
||||
if (values.country_from == '') {
|
||||
@@ -332,14 +332,16 @@ export default {
|
||||
errors.covers[index] = [{ message: `Not a valid URL.` }]
|
||||
}
|
||||
})
|
||||
values.screenshots.forEach((link, index) => {
|
||||
if (!this.$isValidUrl(link)) {
|
||||
if (!('screenshots' in errors)) {
|
||||
errors.screenshots = []
|
||||
if (values.screenshots) {
|
||||
values.screenshots.forEach((link, index) => {
|
||||
if (!this.$isValidUrl(link)) {
|
||||
if (!('screenshots' in errors)) {
|
||||
errors.screenshots = []
|
||||
}
|
||||
errors.screenshots[index] = [{ message: `Not a valid URL.` }]
|
||||
}
|
||||
errors.screenshots[index] = [{ message: `Not a valid URL.` }]
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
console.log(errors)
|
||||
return {
|
||||
errors,
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
v-if="title_group.in_same_master_group.length != 0"
|
||||
>
|
||||
<div class="flex justify-content-center links">
|
||||
<PlatformLink
|
||||
<MasterGroupLink
|
||||
v-for="tg in title_group.in_same_master_group"
|
||||
:key="tg.id"
|
||||
:title_group="tg"
|
||||
@@ -58,7 +58,7 @@ import { Galleria } from 'primevue'
|
||||
import Image from 'primevue/image'
|
||||
import AffiliatedArtist from '@/components/artist/AffiliatedArtist.vue'
|
||||
import ExternalLink from '@/components/ExternalLink.vue'
|
||||
import PlatformLink from '@/components/PlatformLink.vue'
|
||||
import MasterGroupLink from '@/components/MasterGroupLink.vue'
|
||||
import ContentContainer from '../ContentContainer.vue'
|
||||
|
||||
export default {
|
||||
@@ -67,7 +67,7 @@ export default {
|
||||
Image,
|
||||
AffiliatedArtist,
|
||||
ExternalLink,
|
||||
PlatformLink,
|
||||
MasterGroupLink,
|
||||
ContentContainer,
|
||||
},
|
||||
props: {
|
||||
|
||||
@@ -408,7 +408,7 @@ export default {
|
||||
if (!values.audio_bitrate_sampling) {
|
||||
errors.audio_bitrate_sampling = [{ message: 'Select a bitrate' }]
|
||||
}
|
||||
if (values.languages.length === 0) {
|
||||
if (values.languages && values.languages.length === 0) {
|
||||
errors.languages = [{ message: 'Select at least 1 language' }]
|
||||
}
|
||||
if (!this.torrentForm.torrent_file) {
|
||||
|
||||
Reference in New Issue
Block a user