fix vue warnings

This commit is contained in:
Jonas Heinrich 2020-10-17 12:43:07 +02:00
parent 392eeed286
commit 5cde1348d9
2 changed files with 4 additions and 16 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<Content :class="{'icon-loading': loading}" app-name="Radio"> <Content app-name="Radio">
<AppNavigation> <AppNavigation>
<template id="app-radio-navigation" #list> <template id="app-radio-navigation" #list>
<AppNavigationItem icon="icon-category-dashboard" title="Top" /> <AppNavigationItem icon="icon-category-dashboard" title="Top" />

View File

@ -10,7 +10,7 @@
</tr> </tr>
</thead> </thead>
<tbody v-if="stationData"> <tbody v-if="stationData">
<tr v-for="station in stationData" :key="station"> <tr v-for="(station, idx) in stationData" :key="idx">
<td> <td>
<div class="stationIcon" <div class="stationIcon"
:style="{ backgroundImage: `url('${ station.favicon }')` }" /> :style="{ backgroundImage: `url('${ station.favicon }')` }" />
@ -47,20 +47,8 @@ export default {
}, },
props: { props: {
stationData: { stationData: {
type: String, type: Array,
default: '', default() { return [] },
},
stationIsfav: {
type: Boolean,
default: false,
},
stationUuid: {
type: String,
required: true,
},
stationImg: {
type: String,
default: '',
}, },
}, },
} }