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
45ee17af
Commit
45ee17af
authored
6 years ago
by
Camille Villa
Browse files
Options
Downloads
Patches
Plain Diff
Display info panel when toggling open sidebar panel
Co-Authored-By:
Chris Beer
<
chris@cbeer.info
>
parent
7b4e6119
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
src/state/actions/window.js
+4
-2
4 additions, 2 deletions
src/state/actions/window.js
src/state/reducers/companionWindows.js
+3
-0
3 additions, 0 deletions
src/state/reducers/companionWindows.js
with
7 additions
and
2 deletions
src/state/actions/window.js
+
4
−
2
View file @
45ee17af
...
...
@@ -19,6 +19,7 @@ export function focusWindow(windowId) {
* @memberof ActionCreators
*/
export
function
addWindow
(
options
)
{
const
cwDefault
=
`cw-
${
uuid
()}
`
;
const
defaultOptions
=
{
id
:
`window-
${
uuid
()}
`
,
canvasIndex
:
0
,
...
...
@@ -30,12 +31,13 @@ export function addWindow(options) {
height
:
400
,
x
:
2700
,
y
:
2700
,
companionWindowIds
:
[],
companionWindowIds
:
[
cwDefault
],
sideBarPanel
:
'
info
'
,
rotation
:
null
,
view
:
'
single
'
,
maximized
:
false
,
};
return
{
type
:
ActionTypes
.
ADD_WINDOW
,
window
:
{
...
defaultOptions
,
...
options
}
};
return
{
type
:
ActionTypes
.
ADD_WINDOW
,
window
:
{
...
defaultOptions
,
...
options
},
companionWindow
:
{
id
:
cwDefault
,
position
:
'
left
'
,
content
:
'
info
'
}
};
}
/**
...
...
This diff is collapsed.
Click to expand it.
src/state/reducers/companionWindows.js
+
3
−
0
View file @
45ee17af
...
...
@@ -9,6 +9,9 @@ export function companionWindowsReducer(state = {}, action) {
case
ActionTypes
.
ADD_COMPANION_WINDOW
:
return
setIn
(
state
,
[
action
.
id
],
action
.
payload
);
case
ActionTypes
.
ADD_WINDOW
:
return
setIn
(
state
,
[
action
.
companionWindow
.
id
],
action
.
companionWindow
);
case
ActionTypes
.
UPDATE_COMPANION_WINDOW
:
return
updateIn
(
state
,
[
action
.
id
],
orig
=>
merge
(
orig
,
action
.
payload
));
...
...
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