Compare commits

..

18 commits

Author SHA1 Message Date
df781b15ac stash 2024-11-06 01:00:03 +01:00
2d69731e99 stash 2024-11-06 01:00:03 +01:00
38d8b35084 stash 2024-11-06 01:00:03 +01:00
ecbe989f43 stash 2024-11-06 01:00:03 +01:00
87cd630605 stash 2024-11-06 01:00:03 +01:00
781d733197 stash 2024-11-06 01:00:03 +01:00
b45a4af01c stash 2024-11-06 01:00:03 +01:00
7df9a3f8cc stash 2024-11-06 00:59:59 +01:00
8e04cea448 stash 2024-11-06 00:58:24 +01:00
0cb45c73db stash 2024-11-06 00:58:24 +01:00
51f0a90bc7 stash 2024-11-06 00:58:20 +01:00
ec3579e7c1 stash 2024-11-06 00:57:41 +01:00
242066ada4 Add dev environment using docker 2024-11-06 00:51:25 +01:00
d13687a910 cleanup admin 'dashboard' 2024-11-06 00:26:56 +01:00
f44da341b4 add event mail addresses to the /events endpoints 2024-11-06 00:08:52 +01:00
55cef1128e extract the search box into its own component 2024-11-05 23:36:05 +01:00
6e38ff7ac7 use an 'AsyncButton' that waits for completion of an async onClick handler for mail replies and comments in tickets 2024-11-05 23:32:53 +01:00
3a8fa8cdcf show an animation to signify that the page is still loading 2024-11-05 23:25:44 +01:00
3 changed files with 35 additions and 4 deletions

View file

@ -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 = "";
}

View file

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

View 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>