partition tickets by event
This commit is contained in:
parent
d73bebd5de
commit
41b71bd51a
8 changed files with 85 additions and 20 deletions
|
@ -6,7 +6,8 @@
|
|||
{{ getEventSlug }}
|
||||
</button>
|
||||
<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 selectableEvents"
|
||||
v-bind:key="index"
|
||||
:class="{ active: event.slug === getEventSlug }" @click="changeEvent(event)">{{ event.slug }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -115,6 +116,9 @@ export default {
|
|||
computed: {
|
||||
...mapState(['events']),
|
||||
...mapGetters(['getEventSlug', 'getActiveView', "checkPermission", "hasPermissions", "layout", "route"]),
|
||||
selectableEvents() {
|
||||
return [{slug: 'all'}, ...this.events, {slug: 'none'}];
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['changeEvent', 'changeView']),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue