From d77eb6ad1e4d0ff835b9ba9b551809241e4e5643 Mon Sep 17 00:00:00 2001 From: Thorsten Bus Date: Mon, 11 May 2026 10:29:52 +0200 Subject: [PATCH] feat(translate): accept prefilled translation from CCLI pairing --- .../Controllers/TranslationController.php | 1 + resources/js/Pages/Songs/Translate.vue | 35 +++++++++++++++++-- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/TranslationController.php b/app/Http/Controllers/TranslationController.php index c653826..787d049 100644 --- a/app/Http/Controllers/TranslationController.php +++ b/app/Http/Controllers/TranslationController.php @@ -57,6 +57,7 @@ public function page(Song $song): Response 'has_translation' => $song->has_translation, 'groups' => $groups, ], + 'prefilledTranslation' => session()->pull('ccli_prefilled'), ]); } diff --git a/resources/js/Pages/Songs/Translate.vue b/resources/js/Pages/Songs/Translate.vue index 66b0472..2d30f39 100644 --- a/resources/js/Pages/Songs/Translate.vue +++ b/resources/js/Pages/Songs/Translate.vue @@ -1,21 +1,34 @@