Skip to content

Commit

Permalink
added an option to enable special click behavior for the protein impa…
Browse files Browse the repository at this point in the history
…ct type selector (related to cBioPortal/cbioportal/issues/6883)
  • Loading branch information
onursumer committed Dec 5, 2019
1 parent 5d9a7e0 commit 337ca87
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"dependencies": {
"autobind-decorator": "^2.4.0",
"cbioportal-frontend-commons": "^0.0.23",
"cbioportal-frontend-commons": "^0.0.25",
"classnames": "^2.2.6",
"jquery": "^3.3.1",
"lodash": "^4.17.11",
Expand Down
2 changes: 2 additions & 0 deletions src/component/filter/BadgeSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type BadgeSelectorProps = {
name?: string;
placeholder?: string;
isDisabled?: boolean;
unselectOthersWhenAllSelected?: boolean;
numberOfColumnsPerRow?: number;
onSelect?: (selectedOptionIds: string[], allValuesSelected?: boolean) => void;
selectedValues?: {value: string}[];
Expand Down Expand Up @@ -106,6 +107,7 @@ export class BadgeSelector extends React.Component<BadgeSelectorProps, {}>
value={this.selectedValues}
isDisabled={this.props.isDisabled}
numberOfColumnsPerRow={this.props.numberOfColumnsPerRow}
unselectOthersWhenAllSelected={this.props.unselectOthersWhenAllSelected}
/>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/component/filter/ProteinImpactTypeBadgeSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class ProteinImpactTypeBadgeSelector extends React.Component<ProteinImpac
{
public static defaultProps: Partial<ProteinImpactTypeBadgeSelectorProps> = {
colors: DEFAULT_PROTEIN_IMPACT_TYPE_COLORS,
unselectOthersWhenAllSelected: true,
numberOfColumnsPerRow: 2
};

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3170,10 +3170,10 @@ caseless@~0.12.0:
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=

cbioportal-frontend-commons@^0.0.23:
version "0.0.23"
resolved "https://registry.yarnpkg.com/cbioportal-frontend-commons/-/cbioportal-frontend-commons-0.0.23.tgz#1bd3f2d2a59f5b9b718eb66e862e9ca374a22cf8"
integrity sha512-6jdSgduNDCiJuXW05Of/eC6V3JVrEUcOWtao/tex0PdG6nAV0F5H+QeVIkiQ6GVF21LSrB9Loc+vrVklXOmWXQ==
cbioportal-frontend-commons@^0.0.25:
version "0.0.25"
resolved "https://registry.yarnpkg.com/cbioportal-frontend-commons/-/cbioportal-frontend-commons-0.0.25.tgz#26c5fe878f2f8e50331c891127219649aecc313a"
integrity sha512-ec20lCKBBc6ncQyxm868/phfzSOOlOFmaXZxhLh8mmlTb5OnhvUGeEpEbIGgl03uvOvaRQtoWTYflWq0nAHLBA==
dependencies:
autobind-decorator "^2.1.0"
babel-polyfill "^6.22.0"
Expand Down

0 comments on commit 337ca87

Please sign in to comment.