From e4664390b163dc795f71c96aa26b7ff4fa5d9a26 Mon Sep 17 00:00:00 2001 From: Tino Hager Date: Thu, 14 Nov 2024 09:06:14 +0100 Subject: [PATCH] test --- .../forms/album/AlbumCreateDialog.vue | 4 +-- .../js/components/forms/basic/InputText.vue | 2 ++ .../js/components/headers/AlbumHeader.vue | 27 +++++++++++++-- .../js/components/headers/AlbumsHeader.vue | 31 +++++++++++++++-- resources/js/views/gallery-panels/Album.vue | 19 ++++++++--- resources/js/views/gallery-panels/Albums.vue | 12 ++++++- vite.config.ts | 34 ++++++++++++++++++- 7 files changed, 116 insertions(+), 13 deletions(-) diff --git a/resources/js/components/forms/album/AlbumCreateDialog.vue b/resources/js/components/forms/album/AlbumCreateDialog.vue index 21af97ddfd5..bc67e753a4f 100644 --- a/resources/js/components/forms/album/AlbumCreateDialog.vue +++ b/resources/js/components/forms/album/AlbumCreateDialog.vue @@ -5,7 +5,7 @@

{{ $t("lychee.TITLE_NEW_ALBUM") }}

- +
@@ -25,7 +25,7 @@ import AlbumService from "@/services/album-service"; import Dialog from "primevue/dialog"; import InputText from "@/components/forms/basic/InputText.vue"; -import { computed, ref, watch } from "vue"; +import { computed, ref, watch, onMounted } from "vue"; import { useRouter } from "vue-router"; import FloatLabel from "primevue/floatlabel"; import Button from "primevue/button"; diff --git a/resources/js/components/forms/basic/InputText.vue b/resources/js/components/forms/basic/InputText.vue index c8a644fb17c..1d48f8f13d5 100644 --- a/resources/js/components/forms/basic/InputText.vue +++ b/resources/js/components/forms/basic/InputText.vue @@ -10,6 +10,7 @@ :pt="props.pt" :ptOptions="props.ptOptions" :unstyled="props.unstyled" + :autofocus="props.autofocus" @update:modelValue="($event) => emits('updated', $event)" /> @@ -28,6 +29,7 @@ const props = defineProps<{ pt?: PassThrough; ptOptions?: PassThroughOptions; unstyled?: boolean; + autofocus?: boolean; class?: string; }>(); diff --git a/resources/js/components/headers/AlbumHeader.vue b/resources/js/components/headers/AlbumHeader.vue index e38f1622e29..74ee87c9307 100644 --- a/resources/js/components/headers/AlbumHeader.vue +++ b/resources/js/components/headers/AlbumHeader.vue @@ -73,7 +73,7 @@