Compare commits
15 commits
df781b15ac
...
155be1bee7
Author | SHA1 | Date | |
---|---|---|---|
155be1bee7 | |||
305d1622fb | |||
3fd417c954 | |||
b24844831c | |||
1c9afb6bad | |||
af00daca51 | |||
884c621fbf | |||
d7b814cfc0 | |||
8f6041ffa5 | |||
01f235439b | |||
105f360550 | |||
381061a2fd | |||
b6d1422a77 | |||
bc074ffb3f | |||
2036c0a65d |
3 changed files with 4 additions and 35 deletions
|
@ -106,10 +106,12 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions(['sendMail', 'postComment']),
|
...mapActions(['sendMail', 'postComment']),
|
||||||
sendMailAndClear: async function () {
|
sendMailAndClear: async function () {
|
||||||
|
//this.$emit('sendMail', this.newMail);
|
||||||
await this.sendMail(this.newMail);
|
await this.sendMail(this.newMail);
|
||||||
this.newMail = "";
|
this.newMail = "";
|
||||||
},
|
},
|
||||||
addCommentAndClear: async function () {
|
addCommentAndClear: async function () {
|
||||||
|
//this.$emit('addComment', this.newComment);
|
||||||
await this.postComment(this.newComment);
|
await this.postComment(this.newComment);
|
||||||
this.newComment = "";
|
this.newComment = "";
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import Error from './views/Error';
|
||||||
import HowTo from './views/HowTo';
|
import HowTo from './views/HowTo';
|
||||||
import Login from '@/views/Login.vue';
|
import Login from '@/views/Login.vue';
|
||||||
import Register from '@/views/Register.vue';
|
import Register from '@/views/Register.vue';
|
||||||
import Dashboard from "@/views/admin/Dashboard.vue";
|
import Debug from "@/views/admin/Debug.vue";
|
||||||
import Tickets from "@/views/Tickets.vue";
|
import Tickets from "@/views/Tickets.vue";
|
||||||
import Ticket from "@/views/Ticket.vue";
|
import Ticket from "@/views/Ticket.vue";
|
||||||
import Admin from "@/views/admin/Admin.vue";
|
import Admin from "@/views/admin/Admin.vue";
|
||||||
|
@ -66,7 +66,7 @@ const routes = [
|
||||||
{requiresAuth: true, requiresPermission: 'delete_event'}
|
{requiresAuth: true, requiresPermission: 'delete_event'}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '', name: 'admin', component: Dashboard, meta:
|
path: '', name: 'admin', component: Debug, meta:
|
||||||
{requiresAuth: true, requiresPermission: 'delete_event'}
|
{requiresAuth: true, requiresPermission: 'delete_event'}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
<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…
Add table
Reference in a new issue