mirror of
https://github.com/henrygd/beszel.git
synced 2026-03-21 21:26:16 +01:00
fix translation
This commit is contained in:
@@ -160,7 +160,7 @@ export function SystemAlertGlobal({
|
|||||||
function AlertContent({ data }: { data: AlertData }) {
|
function AlertContent({ data }: { data: AlertData }) {
|
||||||
const { key } = data
|
const { key } = data
|
||||||
|
|
||||||
const singleDescription = data.alert?.singleDesc
|
const singleDescription = data.alert.singleDesc?.()
|
||||||
|
|
||||||
const [checked, setChecked] = useState(data.checked || false)
|
const [checked, setChecked] = useState(data.checked || false)
|
||||||
const [min, setMin] = useState(data.min || 10)
|
const [min, setMin] = useState(data.min || 10)
|
||||||
|
|||||||
@@ -303,7 +303,7 @@ export const alertInfo: Record<string, AlertInfo> = {
|
|||||||
icon: ServerIcon,
|
icon: ServerIcon,
|
||||||
desc: () => t`Triggers when status switches between up and down`,
|
desc: () => t`Triggers when status switches between up and down`,
|
||||||
/** "for x minutes" is appended to desc when only one value */
|
/** "for x minutes" is appended to desc when only one value */
|
||||||
singleDesc: t`System` + " " + t`Down`,
|
singleDesc: () => t`System` + " " + t`Down`,
|
||||||
},
|
},
|
||||||
CPU: {
|
CPU: {
|
||||||
name: () => t`CPU Usage`,
|
name: () => t`CPU Usage`,
|
||||||
|
|||||||
2
beszel/site/src/types.d.ts
vendored
2
beszel/site/src/types.d.ts
vendored
@@ -202,5 +202,5 @@ interface AlertInfo {
|
|||||||
desc: () => string
|
desc: () => string
|
||||||
max?: number
|
max?: number
|
||||||
/** Single value description (when there's only one value, like status) */
|
/** Single value description (when there's only one value, like status) */
|
||||||
singleDesc?: string
|
singleDesc?: () => string
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user