-
Notifications
You must be signed in to change notification settings - Fork 584
migrated-Frontend-test-under-entitiesList,-entitydetails-and-historyTranslation to RTL #3992
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
Changes from 3 commits
fdac4fb
3a32eeb
7b4dcbe
fe29727
3f6d066
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,47 +113,63 @@ export function Entity({ | |
| ); | ||
|
|
||
| return ( | ||
| <li className={cn} onClick={handleSelectEntity}> | ||
| <span className='status fas' onClick={handleForBatchEditing} /> | ||
| {selected && !entity.isSibling ? ( | ||
| <Localized | ||
| id='entitieslist-Entity--listitem-label' | ||
| attrs={{ 'aria-label': true }} | ||
| vars={{ original: entity.original }} | ||
| > | ||
| <li | ||
| className={cn} | ||
| role='button' | ||
| aria-label={'Select "{ $original }" for translation.'} | ||
|
||
| onClick={handleSelectEntity} | ||
| > | ||
| <span | ||
| className='status fas' | ||
| role='checkbox' | ||
| aria-selected={checkedForBatchEditing} | ||
| onClick={handleForBatchEditing} | ||
| /> | ||
| {selected && !entity.isSibling ? ( | ||
| <div> | ||
| {!areSiblingsActive && showSiblingEntitiesButton() && ( | ||
| <Localized id='entitieslist-Entity--sibling-strings-title'> | ||
| <i | ||
| className={'sibling-entities-icon fas fa-expand-arrows-alt'} | ||
| title='Click to reveal sibling strings' | ||
| onClick={showSiblingEntities} | ||
| ></i> | ||
| </Localized> | ||
| )} | ||
| </div> | ||
| ) : null} | ||
| <div> | ||
| {!areSiblingsActive && showSiblingEntitiesButton() && ( | ||
| <Localized id='entitieslist-Entity--sibling-strings-title'> | ||
| <i | ||
| className={'sibling-entities-icon fas fa-expand-arrows-alt'} | ||
| title='Click to reveal sibling strings' | ||
| onClick={showSiblingEntities} | ||
| ></i> | ||
| </Localized> | ||
| )} | ||
| <p className='source-string'> | ||
| <Translation | ||
| content={entity.original} | ||
| format={entity.format} | ||
| search={ | ||
| parameters.search_exclude_source_strings | ||
| ? null | ||
| : parameters.search | ||
| } | ||
| /> | ||
| </p> | ||
| <p | ||
| className='translation-string' | ||
| dir={direction} | ||
| lang={code} | ||
| data-script={script} | ||
| > | ||
| <Translation | ||
| content={entity.translation?.string ?? ''} | ||
| format={entity.format} | ||
| search={parameters.search} | ||
| /> | ||
| </p> | ||
| <div className='indicator fas fa-chevron-right'></div> | ||
| </div> | ||
| ) : null} | ||
| <div> | ||
| <p className='source-string'> | ||
| <Translation | ||
| content={entity.original} | ||
| format={entity.format} | ||
| search={ | ||
| parameters.search_exclude_source_strings | ||
| ? null | ||
| : parameters.search | ||
| } | ||
| /> | ||
| </p> | ||
| <p | ||
| className='translation-string' | ||
| dir={direction} | ||
| lang={code} | ||
| data-script={script} | ||
| > | ||
| <Translation | ||
| content={entity.translation?.string ?? ''} | ||
| format={entity.format} | ||
| search={parameters.search} | ||
| /> | ||
| </p> | ||
| <div className='indicator fas fa-chevron-right'></div> | ||
| </div> | ||
| </li> | ||
| </li> | ||
| </Localized> | ||
| ); | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.