Fix two small things
All checks were successful
Tests und Docker-Image / Tests und Frontend-Build (push) Successful in 47s
Tests und Docker-Image / Leeres Produktionsimage bauen und veröffentlichen (push) Successful in 1m47s

This commit is contained in:
Weapie 2026-11-04 13:41:40 +01:00
parent c6795605d3
commit b1591bfaa0
2 changed files with 11 additions and 13 deletions

View File

@ -99,7 +99,7 @@ function App() {
[status, setStatus] = useState(''),
[assignee, setAssignee] = useState(''),
[tagFilter, setTagFilter] = useState(''),
[sort, setSort] = useState('newest'),
[sort, setSort] = useState('id'),
[notifications, setNotifications] = useState<Data[]>([]),
[bell, setBell] = useState(false),
[theme, setTheme] = useState(localStorage.getItem('syncova-theme') || 'system'),
@ -236,9 +236,11 @@ function App() {
.sort((a, b) =>
sort === 'oldest'
? a.updated_at.localeCompare(b.updated_at)
: sort === 'subject'
? a.subject.localeCompare(b.subject)
: b.updated_at.localeCompare(a.updated_at),
: sort === 'newest'
? b.updated_at.localeCompare(a.updated_at)
: sort === 'subject'
? a.subject.localeCompare(b.subject)
: b.id.localeCompare(a.id),
)
const title = queue
? boot.queues.find((q: Data) => q.id === queue)?.name
@ -652,9 +654,10 @@ function App() {
))}
</Select>
<Select aria-label="Sortierung" value={sort} onChange={setSort}>
<option value="id">Ticketnummer</option>
<option value="subject">Betreff A–Z</option>
<option value="newest">Neueste zuerst</option>
<option value="oldest">Älteste zuerst</option>
<option value="subject">Betreff A–Z</option>
</Select>
</div>
<div className="table-scroll">

View File

@ -88,14 +88,9 @@ export function CustomerContact({
onChange={(event) => setEmail(event.target.value)}
/>
</Field>
<div className="modal-actions">
<Button type="button" variant="outline" disabled={busy} onClick={() => setOpen(false)}>
Abbrechen
</Button>
<Button type="submit" disabled={busy}>
{busy ? 'Wird gespeichert …' : 'Kundenkontakt speichern'}
</Button>
</div>
<Button type="submit" disabled={busy}>
{busy ? 'Wird gespeichert …' : 'Kundenkontakt speichern'}
</Button>
</form>
</Modal>
</>