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

View File

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