mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
Sort notification types in case-insensitive
This commit is contained in:
parent
8bbf55777e
commit
e3a0eaf6af
1 changed files with 3 additions and 1 deletions
|
@ -85,7 +85,9 @@ export default {
|
||||||
model: null,
|
model: null,
|
||||||
processing: false,
|
processing: false,
|
||||||
id: null,
|
id: null,
|
||||||
notificationTypes: Object.keys(NotificationFormList).sort(),
|
notificationTypes: Object.keys(NotificationFormList).sort((a, b) => {
|
||||||
|
return a.toLowerCase().localeCompare(b.toLowerCase());
|
||||||
|
}),
|
||||||
notification: {
|
notification: {
|
||||||
name: "",
|
name: "",
|
||||||
/** @type { null | keyof NotificationFormList } */
|
/** @type { null | keyof NotificationFormList } */
|
||||||
|
|
Loading…
Reference in a new issue