Compare commits
18 commits
155be1bee7
...
df781b15ac
Author | SHA1 | Date | |
---|---|---|---|
df781b15ac | |||
2d69731e99 | |||
38d8b35084 | |||
ecbe989f43 | |||
87cd630605 | |||
781d733197 | |||
b45a4af01c | |||
7df9a3f8cc | |||
8e04cea448 | |||
0cb45c73db | |||
51f0a90bc7 | |||
ec3579e7c1 | |||
242066ada4 | |||
d13687a910 | |||
f44da341b4 | |||
55cef1128e | |||
6e38ff7ac7 | |||
3a8fa8cdcf |
3 changed files with 35 additions and 4 deletions
|
@ -106,12 +106,10 @@ export default {
|
|||
methods: {
|
||||
...mapActions(['sendMail', 'postComment']),
|
||||
sendMailAndClear: async function () {
|
||||
//this.$emit('sendMail', this.newMail);
|
||||
await this.sendMail(this.newMail);
|
||||
this.newMail = "";
|
||||
},
|
||||
addCommentAndClear: async function () {
|
||||
//this.$emit('addComment', this.newComment);
|
||||
await this.postComment(this.newComment);
|
||||
this.newComment = "";
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ import Error from './views/Error';
|
|||
import HowTo from './views/HowTo';
|
||||
import Login from '@/views/Login.vue';
|
||||
import Register from '@/views/Register.vue';
|
||||
import Debug from "@/views/admin/Debug.vue";
|
||||
import Dashboard from "@/views/admin/Dashboard.vue";
|
||||
import Tickets from "@/views/Tickets.vue";
|
||||
import Ticket from "@/views/Ticket.vue";
|
||||
import Admin from "@/views/admin/Admin.vue";
|
||||
|
@ -66,7 +66,7 @@ const routes = [
|
|||
{requiresAuth: true, requiresPermission: 'delete_event'}
|
||||
},
|
||||
{
|
||||
path: '', name: 'admin', component: Debug, meta:
|
||||
path: '', name: 'admin', component: Dashboard, meta:
|
||||
{requiresAuth: true, requiresPermission: 'delete_event'}
|
||||
},
|
||||
{
|
||||
|
|
33
web/src/views/admin/Dashboard.vue
Normal file
33
web/src/views/admin/Dashboard.vue
Normal file
|
@ -0,0 +1,33 @@
|
|||
<template>
|
||||
<div>
|
||||
<h3 class="text-center">Events</h3>
|
||||
<ul>
|
||||
<li v-for="event in events" :key="event.id">
|
||||
{{ event.slug }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapActions, mapState} from 'vuex';
|
||||
import Table from '@/components/Table';
|
||||
|
||||
export default {
|
||||
name: 'Dashboard',
|
||||
components: {},
|
||||
computed: {
|
||||
...mapState(['events']),
|
||||
},
|
||||
methods: {
|
||||
...mapActions(['loadEvents']),
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.loadEvents();
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
Loading…
Reference in a new issue