mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-05 20:17:07 +00:00
Add UpdateLineage in rule (#2442)
This commit is contained in:
parent
76f1db95b9
commit
76e1b2e696
@ -49,7 +49,7 @@ const AddRuleModal: FC<AddRuleProps> = ({
|
||||
const [isEnabled, setIsEnabled] = useState<boolean>(
|
||||
Boolean(initialData.enabled)
|
||||
);
|
||||
const onChangeHadler = (
|
||||
const onChangeHandler = (
|
||||
e: React.ChangeEvent<HTMLInputElement | HTMLSelectElement>
|
||||
) => {
|
||||
e.persist();
|
||||
@ -105,11 +105,14 @@ const AddRuleModal: FC<AddRuleProps> = ({
|
||||
disabled={isEditing}
|
||||
name="operation"
|
||||
value={data.operation}
|
||||
onChange={onChangeHadler}>
|
||||
onChange={onChangeHandler}>
|
||||
<option value="">Select Operation</option>
|
||||
<option value={Operation.UpdateDescription}>
|
||||
Update Description
|
||||
</option>
|
||||
<option value={Operation.UpdateLineage}>
|
||||
Update Lineage
|
||||
</option>
|
||||
<option value={Operation.UpdateOwner}>Update Owner</option>
|
||||
<option value={Operation.UpdateTags}>Update Tags</option>
|
||||
</select>
|
||||
|
||||
@ -60,6 +60,7 @@ export enum Operation {
|
||||
SuggestDescription = 'SuggestDescription',
|
||||
SuggestTags = 'SuggestTags',
|
||||
UpdateDescription = 'UpdateDescription',
|
||||
UpdateLineage = 'UpdateLineage',
|
||||
UpdateOwner = 'UpdateOwner',
|
||||
UpdateTags = 'UpdateTags',
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user