Commit be350289 authored by Andrea Ida Malkah Klaura's avatar Andrea Ida Malkah Klaura
Browse files

fixed rendering warning and prep for pv REST API

parent 1f8bf739
......@@ -4,5 +4,8 @@ const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
API_STEERING: '"https://autoradio-testing.o94.at/api.php"'
API_STEERING: '"https://autoradio-testing.o94.at/api.php"',
API_STEERING_SHOWS: '"https://autoradio-testing.o94.at/api.php"',
//API_STEERING: '"http://127.0.0.1:8000/api/v1/"',
//API_STEERING_SHOWS: '"http://127.0.0.1:8000/api/v1/shows/"'
})
......@@ -20,7 +20,7 @@
<b-navbar-toggle target="nav_collapse"></b-navbar-toggle>
<b-collapse is-nav id="nav_collapse">
<b-navbar-nav>
<b-nav-item v-for="mod in modules" :to="mod.slug">{{ mod.title }}</b-nav-item>
<b-nav-item v-for="mod in modules" :key="mod.slug" :to="mod.slug">{{ mod.title }}</b-nav-item>
</b-navbar-nav>
<b-navbar-nav class="ml-auto">
<b-nav-item-dropdown text="EN" right>
......
......@@ -201,8 +201,9 @@ export default {
query: 'shows',
api_key: 'D1EB23A42F'
}, { emulateJSON: true }).then(response => {
if (response.body.hasOwnProperty('error')) alert(response.body.error)
else {
if (response.body.hasOwnProperty('error')) {
alert(response.body.error)
} else {
this.shows = response.body
this.currentShowID = this.shows[0].id
this.currentShow = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment