fix vue warnings

This commit is contained in:
Jonas Heinrich 2020-10-17 12:37:10 +02:00
parent a3948ccb8e
commit 392eeed286
2 changed files with 6 additions and 11 deletions

View File

@ -16,11 +16,7 @@
<Breadcrumb title="Home" href="/" />
<Breadcrumb title="Top" href="/Top" />
</Breadcrumbs>
<Table
:station-data="tableData"
station-uuid="960b6cd6-0601-11e8-ae97-52543be04c81"
station-isfav="false"
station-img="https://upload.wikimedia.org/wikipedia/commons/thumb/a/ad/Radio_SRF_Virus.svg/205px-Radio_SRF_Virus.svg.png" />
<Table :station-data="tableData" />
</AppContent>
</Content>
</template>
@ -62,10 +58,9 @@ export default {
},
scroll() {
window.onscroll = () => {
const bottomOfWindow = document.documentElement.scrollTop + window.innerHeight === document.documentElement.offsetHeight
if (bottomOfWindow) {
console.log('test')
}
if ((window.innerHeight + window.scrollY) >= document.body.scrollHeight) {
this.loadStations()
}
}
},
},

View File

@ -22,10 +22,10 @@
</td>
<td class="actionColumn">
<Actions>
<ActionButton icon="icon-star" :close-after-click="true" @click="onFavorite">
<ActionButton icon="icon-star" :close-after-click="true">
Add to favorites
</ActionButton>
<ActionButton icon="icon-info" :close-after-click="true" @click="onDetails">
<ActionButton icon="icon-info" :close-after-click="true">
Details
</ActionButton>
</Actions>