Skip to content

Dev -> Main 2.6.5 #1611

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

Merged
merged 14 commits into from
Mar 31, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
allow deleting all query variables
  • Loading branch information
raheeliftikhar5 committed Mar 25, 2025
commit 36c9085292a19622e57051eddcbf815221a6846e
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export const KeyValueList = (props: {
onDelete: (item: ReactNode, index: number) => void;
isStatic?: boolean;
indicatorForAll?: boolean;
allowDeletingAll?: boolean;
}) => {
return (
<>
Expand All @@ -105,8 +106,8 @@ export const KeyValueList = (props: {
{item}
{!props.isStatic &&
<DelIcon
onClick={() => props.list.length > 1 && props.onDelete(item, index)}
$forbidden={props.list.length === 1}
onClick={() => (props.allowDeletingAll || (!props.allowDeletingAll && props.list.length > 1)) && props.onDelete(item, index)}
$forbidden={!props.allowDeletingAll && props.list.length === 1}
/>
}
</KeyValueListItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const VariablesComp = class extends list(VariableItem) {
{(editorState: EditorState) => (
<ControlPropertyViewWrapper {...params}>
<KeyValueList
allowDeletingAll
list={this.getView().map((child) => child.propertyView(params))}
onAdd={() => this.add(editorState)}
onDelete={(item, index) => this.dispatch(this.deleteAction(index))}
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy