switch to warning, general cleaning up tech debt

This commit is contained in:
Matt Hill
2021-08-20 07:51:56 -06:00
committed by Aiden McClelland
parent 2e6513ed03
commit f0d331b222
17 changed files with 93 additions and 355 deletions

View File

@@ -27,13 +27,13 @@ export class FormService {
getUnionObject (spec: ValueSpecUnion | ListValueSpecUnion, selection: string, current?: { [key: string]: any }): FormGroup {
const { variants, tag } = spec
const { name, description, 'change-warning' : changeWarning } = isFullUnion(spec) ? spec : { ...spec.tag, 'change-warning': undefined }
const { name, description, warning } = isFullUnion(spec) ? spec : { ...spec.tag, warning: undefined }
const enumSpec: ValueSpecEnum = {
type: 'enum',
name,
description,
'change-warning': changeWarning,
warning,
default: selection,
values: Object.keys(variants),
'value-names': tag['variant-names'],