fix empty submitter text
Build / Build-image (push) Successful in 1m11s

This commit is contained in:
2026-08-22 15:09:00 +02:00
parent 9af75a0781
commit 0a605fce7c
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ jobs:
env: env:
IMAGE_NAME: tladle IMAGE_NAME: tladle
REGISTRY_NAME: gitea.sc0tt.org REGISTRY_NAME: gitea.sc0tt.org
GIT_TAG: 1.3 GIT_TAG: 1.3.1
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
@@ -75,7 +75,7 @@ class TlaSuggestionResource extends Resource
EditAction::make(), EditAction::make(),
DeleteAction::make(), DeleteAction::make(),
Action::make('Approve') Action::make('Approve')
->action(fn (TlaSuggestion $record) => $record->ApproveTla($record)) ->action(fn (TlaSuggestion $record) => TlaSuggestion::ApproveTla($record))
->requiresConfirmation() ->requiresConfirmation()
->modalHeading('Approve TLA') ->modalHeading('Approve TLA')
->modalDescription('Are you sure you want to approve this TLA?') ->modalDescription('Are you sure you want to approve this TLA?')
+1 -1
View File
@@ -125,7 +125,7 @@
<h3>Guesses left: {{ maxGuesses - guesses.length }}</h3> <h3>Guesses left: {{ maxGuesses - guesses.length }}</h3>
</UCard> </UCard>
<br> <br>
<template v-if="submitter != ''"> <template v-if="submitter != null">
Todays TLA was submitted by <b>{{ submitter }}</b> Todays TLA was submitted by <b>{{ submitter }}</b>
<br><br> <br><br>
</template> </template>
+4
View File
@@ -36,6 +36,9 @@ import Modal from '../components/Modal.vue';
If you wish, you can submit adnother TLA by exiting this alert. <br><br> If you wish, you can submit adnother TLA by exiting this alert. <br><br>
<UButton to="/">Main page</UButton> <UButton to="/">Main page</UButton>
</Modal> </Modal>
<Modal v-model:open="missing_fields">
<b>Please fill out all required fields (marked with *)</b>
</Modal>
</template> </template>
@@ -62,6 +65,7 @@ import axios from 'axios';
language: '', language: '',
submitter: '', submitter: '',
}, },
missing_fields: false,
submited: false, submited: false,
}; };