Handled subtitle if present

pull/888/merge
Marco Kreeft 2025-04-11 08:44:59 +02:00 committed by Bastien Wirtz
parent 1de57d9423
commit f4c026fe2e
1 changed files with 17 additions and 12 deletions

View File

@ -18,19 +18,24 @@
</template>
<template #content>
<p class="title is-4">{{ item.name }}</p>
<p class="subtitle is-6">
<span v-if="error" class="error">An error has occurred.</span>
<template v-else>
<span class="down monospace">
<p class="fas fa-download"></p>
{{ downRate }}
</span>
<span class="up monospace">
<p class="fas fa-upload"></p>
{{ upRate }}
</span>
</template>
<p v-if="item.subtitle" class="subtitle">
{{ item.subtitle }}
</p>
<template v-else>
<p class="subtitle is-6">
<span v-if="error" class="error">An error has occurred.</span>
<template v-else>
<span class="down monospace">
<p class="fas fa-download"></p>
{{ downRate }}
</span>
<span class="up monospace">
<p class="fas fa-upload"></p>
{{ upRate }}
</span>
</template>
</p>
</template>
</template>
</Generic>
</template>