Fix two small things
This commit is contained in:
parent
c6795605d3
commit
b1591bfaa0
13
src/App.tsx
13
src/App.tsx
@ -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">
|
||||
|
||||
@ -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>
|
||||
</>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user