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
8dc112de
Commit
8dc112de
authored
Feb 28, 2019
by
Jack Reed
Browse files
Options
Downloads
Patches
Plain Diff
remove provider icon from window top bar fixes #1962
parent
c624f271
No related branches found
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/WindowTopBar.test.js
+0
-7
0 additions, 7 deletions
__tests__/src/components/WindowTopBar.test.js
src/components/WindowTopBar.js
+0
-2
0 additions, 2 deletions
src/components/WindowTopBar.js
with
0 additions
and
9 deletions
__tests__/src/components/WindowTopBar.test.js
+
0
−
7
View file @
8dc112de
...
...
@@ -9,7 +9,6 @@ import AppBar from '@material-ui/core/AppBar';
import
WindowTopMenuButton
from
'
../../../src/containers/WindowTopMenuButton
'
;
import
WindowTopBarButtons
from
'
../../../src/containers/WindowTopBarButtons
'
;
import
WindowIcon
from
'
../../../src/containers/WindowIcon
'
;
import
{
WindowTopBar
}
from
'
../../../src/components/WindowTopBar
'
;
/** create wrapper */
...
...
@@ -34,7 +33,6 @@ describe('WindowTopBar', () => {
expect
(
wrapper
.
find
(
Toolbar
).
length
).
toBe
(
1
);
expect
(
wrapper
.
find
(
IconButton
).
length
).
toBe
(
2
);
expect
(
wrapper
.
find
(
MenuIcon
).
length
).
toBe
(
1
);
expect
(
wrapper
.
find
(
WindowIcon
).
length
).
toBe
(
1
);
expect
(
wrapper
.
find
(
Typography
).
length
).
toBe
(
1
);
expect
(
wrapper
.
find
(
WindowTopBarButtons
).
length
).
toBe
(
1
);
expect
(
wrapper
.
find
(
WindowTopMenuButton
).
length
).
toBe
(
1
);
...
...
@@ -46,11 +44,6 @@ describe('WindowTopBar', () => {
expect
(
wrapper
.
find
(
IconButton
).
first
().
props
().
onClick
).
toBe
(
toggleWindowSideBar
);
});
it
(
'
passes correct props to <WindowIcon/>
'
,
()
=>
{
const
wrapper
=
createWrapper
();
expect
(
wrapper
.
find
(
WindowIcon
).
first
().
props
().
windowId
).
toBe
(
'
xyz
'
);
});
it
(
'
passes correct props to <Typography/>
'
,
()
=>
{
const
wrapper
=
createWrapper
();
expect
(
wrapper
.
find
(
Typography
).
first
().
render
().
text
()).
toBe
(
'
awesome manifest
'
);
...
...
This diff is collapsed.
Click to expand it.
src/components/WindowTopBar.js
+
0
−
2
View file @
8dc112de
...
...
@@ -7,7 +7,6 @@ import CloseIcon from '@material-ui/icons/CloseSharp';
import
Toolbar
from
'
@material-ui/core/Toolbar
'
;
import
AppBar
from
'
@material-ui/core/AppBar
'
;
import
classNames
from
'
classnames
'
;
import
WindowIcon
from
'
../containers/WindowIcon
'
;
import
WindowTopMenuButton
from
'
../containers/WindowTopMenuButton
'
;
import
WindowTopBarButtons
from
'
../containers/WindowTopBarButtons
'
;
import
ns
from
'
../config/css-ns
'
;
...
...
@@ -35,7 +34,6 @@ export class WindowTopBar extends Component {
>
<
MenuIcon
/>
<
/IconButton
>
<
WindowIcon
windowId
=
{
windowId
}
/
>
<
Typography
variant
=
"
h3
"
noWrap
color
=
"
inherit
"
className
=
{
classes
.
typographyBody
}
>
{
manifestTitle
}
<
/Typography
>
...
...
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