* Cleanup before merge

This commit is contained in:
Alexis
2021-03-29 11:12:56 +02:00
parent 2043dfb3c4
commit e819e00822
3 changed files with 9 additions and 13 deletions

View File

@@ -8,7 +8,7 @@
</h1> </h1>
</header> </header>
<div class="section-content"> <div class="section-content">
<main class="celestial-body"> <main v-if="celestial" class="celestial-body">
<div> <div>
<h3 class="heading-3"> <h3 class="heading-3">
Informations Informations
@@ -43,17 +43,13 @@
<script> <script>
// API // API
import { fetchCelestial } from '@/api/le-systeme-solaire' import { fetchCelestial } from '@/api/le-systeme-solaire'
// import { fetchWikipediaExcerpt } from "@/api/wikipedia";
// Global methods
export default { export default {
name: 'Celestial', name: 'Celestial',
data () { data () {
return { return {
celestial: {}, celestial: {}
celestialLoaded: false
} }
}, },
@@ -62,12 +58,11 @@ export default {
fetchCelestial(this.$route.params.slug) fetchCelestial(this.$route.params.slug)
.then((res) => { .then((res) => {
this.celestial = res this.celestial = res
this.celestialLoaded = true
return this.celestial return this.celestial
}) })
.catch(() => { // .catch((err) => {
this.error = "Impossible de récupérer l'astre demandé." // console.error(err)
}) // })
} }
} }
</script> </script>

View File

@@ -14,14 +14,15 @@
<script> <script>
export default { export default {
name: 'Favourites', name: 'Favourites',
data () { data () {
return { return {
favorites: [] favourites: []
} }
}, },
created () { created () {
// const favourites = this.$store.user.favourites // const favourites = this.$store.state.user.favourites
// console.log(favourites)
} }
} }
</script> </script>