Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador Video
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IIIF
Mirador
Mirador Video
Commits
5d89ce69
Unverified
Commit
5d89ce69
authored
4 years ago
by
Michael J. Giarlo
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #3448 from ProjectMirador/3270-added-from-url
parents
453f1a34
2de7f225
Branches
Branches containing commit
Tags
Tags containing commit
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 @
5d89ce69
...
...
@@ -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 @
5d89ce69
...
...
@@ -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