{{ pkg.manifest.title }} config has been modified to satisfy {{ rec.dependentTitle }}.
-
No config options for {{ pkg.manifest.title }} {{ pkg.manifest.version }}.
-No config options for {{ pkg.manifest.title }} {{ pkg.manifest.version }}.
+@@ -66,5 +73,5 @@
diff --git a/ui/src/app/pages/server-routes/server-backup/server-backup.page.ts b/ui/src/app/pages/server-routes/server-backup/server-backup.page.ts index a70a113e4..bbda1965b 100644 --- a/ui/src/app/pages/server-routes/server-backup/server-backup.page.ts +++ b/ui/src/app/pages/server-routes/server-backup/server-backup.page.ts @@ -1,9 +1,9 @@ import { Component } from '@angular/core' -import { ModalController } from '@ionic/angular' +import { ModalController, IonicSafeString } from '@ionic/angular' import { ApiService } from 'src/app/services/api/embassy-api.service' import { GenericInputComponent } from 'src/app/modals/generic-input/generic-input.component' import { DiskInfo } from 'src/app/services/api/api.types' -import { ErrorToastService } from 'src/app/services/error-toast.service' +import { getErrorMessage } from 'src/app/services/error-toast.service' @Component({ selector: 'server-backup', @@ -14,11 +14,11 @@ export class ServerBackupPage { disks: DiskInfo[] loading = true allPartitionsMounted: boolean + loadingError: string | IonicSafeString constructor ( private readonly modalCtrl: ModalController, private readonly embassyApi: ApiService, - private readonly errToast: ErrorToastService, ) { } ngOnInit () { @@ -34,7 +34,7 @@ export class ServerBackupPage { try { this.disks = await this.embassyApi.getDisks({ }) } catch (e) { - this.errToast.present(e) + this.loadingError = getErrorMessage(e) } finally { this.loading = false } diff --git a/ui/src/app/services/error-toast.service.ts b/ui/src/app/services/error-toast.service.ts index d89f01137..2540da782 100644 --- a/ui/src/app/services/error-toast.service.ts +++ b/ui/src/app/services/error-toast.service.ts @@ -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) { diff --git a/ui/src/app/services/form.service.ts b/ui/src/app/services/form.service.ts index 1b8264a7e..c8cc08bc1 100644 --- a/ui/src/app/services/form.service.ts +++ b/ui/src/app/services/form.service.ts @@ -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) => {