IAlertDraftContextValue
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
The alerting dialog’s edit draft: the automation being edited, the baseline it is compared against, and the form-level warning and title-validity flag that move with it.
Changes on every keystroke; consumers re-render by design.
export interface IAlertDraftContextValue
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
IAutomationMetadataObjectDefinition | undefined | (BETA) The alert being edited. Undefined only before the state model has seeded it. | ||
boolean | (BETA) Whether the current title passes the length limit. | ||
IAutomationMetadataObjectDefinition | undefined | (BETA) The draft as it was when the dialog opened; the dirty check compares against it. | ||
string | undefined | (BETA) Form-level warning shown below the form, e.g. after switching to a creator-only channel. |
Property details
IAlertDraftContextValue.editedAutomationpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
The alert being edited. Undefined only before the state model has seeded it.
editedAutomation: IAutomationMetadataObjectDefinition | undefined;
IAlertDraftContextValue.isTitleValidpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
Whether the current title passes the length limit.
isTitleValid: boolean;
IAlertDraftContextValue.originalAutomationpropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
The draft as it was when the dialog opened; the dirty check compares against it.
originalAutomation: IAutomationMetadataObjectDefinition | undefined;
IAlertDraftContextValue.warningMessagepropertyBeta
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
Form-level warning shown below the form, e.g. after switching to a creator-only channel.
warningMessage: string | undefined;