From 3eb478a060a5e7623889883d58048c62c2123bd5 Mon Sep 17 00:00:00 2001 From: Settel Date: Tue, 6 Sep 2022 13:37:14 +0200 Subject: [PATCH] feat: add new player --- client/src/components/ModalDialog.vue | 2 +- client/src/components/admin/PlayerDialog.vue | 23 ++++++--- client/src/components/admin/PlayersTile.vue | 51 ++++++++++++-------- client/src/composables/engine.d.ts | 2 +- client/src/composables/engine/gamemaster.ts | 14 +++++- client/src/composables/useEngine.ts | 6 ++- 6 files changed, 67 insertions(+), 31 deletions(-) diff --git a/client/src/components/ModalDialog.vue b/client/src/components/ModalDialog.vue index 7a64d1f..464646e 100644 --- a/client/src/components/ModalDialog.vue +++ b/client/src/components/ModalDialog.vue @@ -68,7 +68,7 @@ const emit = defineEmits(['close']) &__footer { display: flex; - justify-content: end; + // justify-content: end; margin: 24px 16px; } diff --git a/client/src/components/admin/PlayerDialog.vue b/client/src/components/admin/PlayerDialog.vue index 6397549..ae7d0f1 100644 --- a/client/src/components/admin/PlayerDialog.vue +++ b/client/src/components/admin/PlayerDialog.vue @@ -1,16 +1,17 @@ @@ -19,10 +20,16 @@ import { ref, watch } from 'vue' import { PlayerEdit } from '@/composables/engine.d' +type Button = { + id: string + name: string + primary?: boolean +} + const props = defineProps<{ title: string show: boolean - buttonText: string + buttons: Array