Skip to content

Commit

Permalink
inputspec instead of config
Browse files Browse the repository at this point in the history
  • Loading branch information
MattDHill committed Nov 28, 2024
1 parent 0a07dfa commit ad7a94c
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import {
UntypedFormGroup,
} from '@angular/forms'
import { ErrorService, LoadingService } from '@start9labs/shared'
// @TODO Matt there's no config in sdk anymore
// @ts-ignore
import { config, IST } from '@start9labs/start-sdk'
import { IST, inputSpec } from '@start9labs/start-sdk'
import { TuiButton, TuiDialogService } from '@taiga-ui/core'
import { TuiInputModule } from '@taiga-ui/legacy'
import { PatchDB } from 'patch-db-client'
Expand Down Expand Up @@ -83,7 +81,7 @@ export class SettingsEmailComponent {

testAddress = ''
readonly spec: Promise<IST.InputSpec> = configBuilderToSpec(
config.constants.customSmtp,
inputSpec.constants.customSmtp,
)
readonly form$ = this.patch
.watch$('serverInfo', 'smtp')
Expand All @@ -98,7 +96,7 @@ export class SettingsEmailComponent {

try {
await this.api.configureEmail(
config.constants.customSmtp.validator.unsafeCast(value),
inputSpec.constants.customSmtp.validator.unsafeCast(value),
)
} catch (e: any) {
this.errorService.handleError(e)
Expand Down

0 comments on commit ad7a94c

Please sign in to comment.