Skip to content
Snippets Groups Projects
Commit 2de7f225 authored by Chris Beer's avatar Chris Beer
Browse files

Stop displaying 'added from url placeholder'; fixes #3270

parent 453f1a34
No related branches found
No related tags found
No related merge requests found
...@@ -63,9 +63,9 @@ describe('ManifestListItem', () => { ...@@ -63,9 +63,9 @@ describe('ManifestListItem', () => {
expect(wrapper.find('.mirador-manifest-list-item-provider').children().text()).toEqual('ACME'); expect(wrapper.find('.mirador-manifest-list-item-provider').children().text()).toEqual('ACME');
}); });
it('displays a placeholder provider if no information is given', () => { it('displays nothing if no information is given', () => {
const wrapper = createWrapper(); const wrapper = createWrapper();
expect(wrapper.find('.mirador-manifest-list-item-provider').children().text()).toEqual('addedFromUrl'); expect(wrapper.find('.mirador-manifest-list-item-provider').children().length).toEqual(0);
}); });
it('displays a collection label for collections', () => { it('displays a collection label for collections', () => {
......
...@@ -138,7 +138,7 @@ export class ManifestListItem extends React.Component { ...@@ -138,7 +138,7 @@ export class ManifestListItem extends React.Component {
</ButtonBase> </ButtonBase>
</Grid> </Grid>
<Grid item xs={8} sm={4}> <Grid item xs={8} sm={4}>
<Typography className={ns('manifest-list-item-provider')}>{provider || t('addedFromUrl')}</Typography> <Typography className={ns('manifest-list-item-provider')}>{provider}</Typography>
<Typography>{t('numItems', { count: size, number: size })}</Typography> <Typography>{t('numItems', { count: size, number: size })}</Typography>
</Grid> </Grid>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment