diff --git a/web/src/components/Timeline.vue b/web/src/components/Timeline.vue index 88bfa94..28a21b5 100644 --- a/web/src/components/Timeline.vue +++ b/web/src/components/Timeline.vue @@ -106,10 +106,12 @@ 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 = ""; } diff --git a/web/src/router.js b/web/src/router.js index e82611e..871a01c 100644 --- a/web/src/router.js +++ b/web/src/router.js @@ -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 Dashboard from "@/views/admin/Dashboard.vue"; +import Debug from "@/views/admin/Debug.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: Dashboard, meta: + path: '', name: 'admin', component: Debug, meta: {requiresAuth: true, requiresPermission: 'delete_event'} }, { diff --git a/web/src/views/admin/Dashboard.vue b/web/src/views/admin/Dashboard.vue deleted file mode 100644 index 6272d71..0000000 --- a/web/src/views/admin/Dashboard.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - - - \ No newline at end of file