Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Parent Item Selection In Dropdown #4705

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

thecalcc
Copy link
Contributor

@thecalcc thecalcc commented Dec 13, 2024

STT-63

@thecalcc thecalcc changed the title Rework dropdown fields Enable Parent Item Selection In Dropdown Dec 18, 2024
@@ -80,6 +80,7 @@ export class EditorUsingManualSourceOrVocabulary extends React.PureComponent<IPr
kind="synchronous"
getOptions={() => options}
values={selected}
canSelectBranchWithChildren={config.canSelectBranchWithChildren}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep capability to allow/disallow based on a tree node

canSelectBranchWithChildren?(branch: ITreeNode<unknown>): boolean;

Copy link
Contributor Author

@thecalcc thecalcc Jan 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not supported in uif component, we talked about it and decided to leave as is

optionTemplate?: React.ComponentType<{item: unknown}>;
valueTemplate?: React.ComponentType<{item: unknown}>;
multiple: boolean;
}

/**
* @deprecated Use IDropdownConfigManualSource/IDropdownConfigVocabulary/IDropdownConfigRemoteSource
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it be removed instead of deprecating?

optionTemplate?: React.ComponentType<{item: unknown}>;
valueTemplate?: React.ComponentType<{item: unknown}>;
multiple: boolean;
}

/**
* @deprecated Use IDropdownConfigManualSource/IDropdownConfigVocabulary/IDropdownConfigRemoteSource
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we need to deprecate it. Maybe it's enough to warn not to use this one if use case can be satisfied using other dropdown sources.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need, but I thought it's the better direction

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@thecalcc thecalcc merged commit bc2dbc6 into superdesk:develop Jan 7, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants