Skip to content

Commit

Permalink
Use type info instead of id type as icon title in the folder contents (
Browse files Browse the repository at this point in the history
…#3456)

* type info in folder contents items

* changelog
  • Loading branch information
mamico authored Jul 13, 2022
1 parent 3f4c2d9 commit d6317f1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### Feature

- Use type info instead of id type as icon title in the folder contents. @mamico
- Remove transifex configuration for Volto translations @erral
- Add missing support for inner `blocksConfig` in block extensions resolutions @sneridagh

Expand Down
2 changes: 1 addition & 1 deletion src/components/manage/Contents/ContentsItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const ContentsItemComponent = ({
size="20px"
className="icon-margin"
color="#878f93"
title={item['@type']}
title={item['Type'] || item['@type']}
/>{' '}
<span title={item.title}> {item.title}</span>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/manage/Contents/ContentsItem.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ describe('ContentsItem', () => {
title: 'Blog',
is_folderish: false,
'@type': 'Document',
Type: 'Pagina',
}}
selected={false}
onClick={() => {}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ exports[`ContentsItem renders a contents item component 1`] = `
className="icon icon-margin"
dangerouslySetInnerHTML={
Object {
"__html": "<title>Document</title>undefined",
"__html": "<title>Pagina</title>undefined",
}
}
onClick={null}
Expand Down

0 comments on commit d6317f1

Please sign in to comment.