use events slugs everywhere

This commit is contained in:
j3d1 2019-12-02 17:22:21 +01:00
parent b723331c6c
commit fbf6d9dc91
2 changed files with 4 additions and 4 deletions

View file

@ -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"

View file

@ -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 },