This commit is contained in:
ManjaroOne666 2019-02-14 21:42:13 +00:00
parent 8672460e25
commit 8f450992e9
3 changed files with 4 additions and 7 deletions

View File

@ -1,5 +1,6 @@
## TODO
* General - fallbacks in case no api response
* General - about page api call
* General - sort things by sort_order
* General - page headings etc - use api
* mailer

View File

@ -1,7 +1,7 @@
<template>
<article class="is-mounted no-content-page no-content-bg">
<h1 class="no-content-heading page-title">{{ heading }}</h1>
<p class="msg-txt">{{ message }}</p>
<p class="no-content-text">{{ message }}</p>
</article>
</template>
@ -73,9 +73,5 @@ export default {
.no-content-heading {
margin-bottom: .25em;
}
.msg-txt {
color: $color__neutral-700;
}
</style>

View File

@ -96,14 +96,14 @@ export default {
let { imageUrl } = await $axios.$get('api/v1/page/services')
if (!imageUrl) {
imageUrl = '/img/default-home.jpg'
imageUrl = '/img/default-services.jpg'
}
return { services, imageUrl }
} catch {
return {
services: [],
imageUrl: '/img/default-home.jpg',
imageUrl: '/img/default-services.jpg',
}
}
},