mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
many things
This commit is contained in:
committed by
Aiden McClelland
parent
7adb66cf4c
commit
9b8fccb431
@@ -47,13 +47,12 @@ export class ErrorToastService {
|
||||
export function getErrorMessage (e: RequestError, link?: string): string | IonicSafeString {
|
||||
let message: string | IonicSafeString
|
||||
|
||||
if (e.code) message = String(e.code)
|
||||
if (e.message) message = `${message ? message + ' ' : ''}${e.message}`
|
||||
if (e.details) message = `${message ? message + ': ' : ''}${e.details}`
|
||||
|
||||
if (!message) {
|
||||
message = 'Unknown Error.'
|
||||
link = 'https://docs.start9.com'
|
||||
link = 'https://docs.start9.com/support/FAQ/index.html'
|
||||
}
|
||||
|
||||
if (link) {
|
||||
|
||||
@@ -400,7 +400,6 @@ export function convertValuesRecursive (configSpec: ConfigSpec, group: FormGroup
|
||||
} else if (valueSpec.subtype === 'string') {
|
||||
formArr.controls.forEach(control => {
|
||||
if (!control.value) control.setValue(null)
|
||||
control.setValue(control.value ? Number(control.value) : null)
|
||||
})
|
||||
} else if (valueSpec.subtype === 'object') {
|
||||
formArr.controls.forEach((formGroup: FormGroup) => {
|
||||
|
||||
Reference in New Issue
Block a user