use events slugs everywhere
This commit is contained in:
parent
b723331c6c
commit
fbf6d9dc91
2 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<button class="btn text-light dropdown-toggle btn-heading" type="button" id="dropdownMenuButton"
|
<button class="btn text-light dropdown-toggle btn-heading" type="button" id="dropdownMenuButton"
|
||||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
{{ activeEvent }}
|
{{ activeEvent.slug }}
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu bg-dark" aria-labelledby="dropdownMenuButton">
|
<div class="dropdown-menu bg-dark" aria-labelledby="dropdownMenuButton">
|
||||||
<a class="dropdown-item text-light" href="#" v-for="(event, index) in events" v-bind:key="index"
|
<a class="dropdown-item text-light" href="#" v-for="(event, index) in events" v-bind:key="index"
|
||||||
|
|
|
@ -6,11 +6,11 @@ Vue.use(Vuex);
|
||||||
export default new Vuex.Store({
|
export default new Vuex.Store({
|
||||||
state: {
|
state: {
|
||||||
events: [
|
events: [
|
||||||
{'slug': '35c3'},
|
{'slug': '35C3'},
|
||||||
{'slug': 'camp19'},
|
{'slug': 'camp19'},
|
||||||
{'slug': '36c3'}
|
{'slug': '36C3'}
|
||||||
],
|
],
|
||||||
activeEvent: '36c3',
|
activeEvent: {'slug': '36C3'},
|
||||||
layout: 'cards',
|
layout: 'cards',
|
||||||
loadedItems: [
|
loadedItems: [
|
||||||
{ uid: 1, description: 'sleeping bag', box: 7, image: 41 },
|
{ uid: 1, description: 'sleeping bag', box: 7, image: 41 },
|
||||||
|
|
Loading…
Reference in a new issue