Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mirador-video-annotations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Loïs Poujade
mirador-video-annotations
Commits
2de7f225
Commit
2de7f225
authored
4 years ago
by
Chris Beer
Browse files
Options
Downloads
Patches
Plain Diff
Stop displaying 'added from url placeholder'; fixes #3270
parent
453f1a34
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
__tests__/src/components/ManifestListItem.test.js
+2
-2
2 additions, 2 deletions
__tests__/src/components/ManifestListItem.test.js
src/components/ManifestListItem.js
+1
-1
1 addition, 1 deletion
src/components/ManifestListItem.js
with
3 additions
and
3 deletions
__tests__/src/components/ManifestListItem.test.js
+
2
−
2
View file @
2de7f225
...
...
@@ -63,9 +63,9 @@ describe('ManifestListItem', () => {
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
();
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
'
,
()
=>
{
...
...
This diff is collapsed.
Click to expand it.
src/components/ManifestListItem.js
+
1
−
1
View file @
2de7f225
...
...
@@ -138,7 +138,7 @@ export class ManifestListItem extends React.Component {
<
/ButtonBase
>
<
/Grid
>
<
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
>
<
/Grid
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment