Skip to content

Commit

Permalink
render 'expand' or 'collapse' based on the state
Browse files Browse the repository at this point in the history
  • Loading branch information
lipalath-ms committed Jun 19, 2024
1 parent 1f64d25 commit 49a0b4a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ const checkType = (value: string, type: string | undefined): string => {
iconProps={{ iconName: expanded ? 'ChevronUp' : 'ChevronDown' }}
styles={{ root: classNames.expandButton }}
onClick={toggleExpand}
title={strings.ManageMembership.labels.expandCollapse}
title={expanded ? strings.ManageMembership.labels.collapse : strings.ManageMembership.labels.expand}
/>
</div>}

Expand Down
2 changes: 1 addition & 1 deletion UI/web-app/src/components/SourcePart/SourcePart.base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const SourcePartBase: React.FunctionComponent<SourcePartProps> = (props:
className={classNames.expandButton}
iconProps={{ iconName: expanded ? 'ChevronUp' : 'ChevronDown' }}
onClick={toggleExpand}
title={strings.ManageMembership.labels.expandCollapse}
title={expanded ? strings.ManageMembership.labels.collapse : strings.ManageMembership.labels.expand}
/>
</div>
{expanded &&
Expand Down
3 changes: 2 additions & 1 deletion UI/web-app/src/services/localization/IStrings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ export type IStrings = {
updatingSyncJob: string;
group: string;
destinationPickerSuggestionsHeaderText: string;
expandCollapse: string;
expand: string;
collapse: string;
sourceType: string;
addSourcePart: string;
excludeSourcePart: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ export const strings: IStrings = {
updatingSyncJob: 'Updating...',
group: 'Group',
destinationPickerSuggestionsHeaderText: 'Suggested destinations',
expandCollapse: 'Expand/Collapse',
expand: 'Expand',
collapse: 'Collapse',
sourceType: 'Source Type',
addSourcePart: 'Add Source Part',
excludeSourcePart: 'Exclude Source Part',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,8 @@ export const strings: IStrings = {
updatingSyncJob: 'Actualizando...',
group: 'Grupo',
destinationPickerSuggestionsHeaderText: 'Destinos sugeridos',
expandCollapse: 'Expandir/Contraer',
expand: 'Expandir',
collapse: 'Contraer',
sourceType: 'Tipo de origen',
addSourcePart: 'Agregar parte de origen',
excludeSourcePart: 'Excluir parte de origen',
Expand Down

0 comments on commit 49a0b4a

Please sign in to comment.