Skip to content
Snippets Groups Projects
Commit 73e3bfb5 authored by Jack Reed's avatar Jack Reed Committed by Glenn Fischer
Browse files

Fixes #2346 by using the default position in the window actioncreator (#2353)

parent 3c66b5ea
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ describe('window actions', () => {
},
{
content: 'thumbnail_navigation',
position: 'far-bottom',
position: 'off',
},
],
type: ActionTypes.ADD_WINDOW,
......@@ -99,7 +99,11 @@ describe('window actions', () => {
};
const mockState = {
config: {},
config: {
thumbnailNavigation: {
defaultPosition: 'off',
},
},
windows: { a: {}, b: {} },
};
......
......
......@@ -75,7 +75,8 @@ export function addWindow(options) {
{
content: 'thumbnail_navigation',
id: cwThumbs,
position: options.thumbnailNavigationPosition || 'far-bottom',
position: options.thumbnailNavigationPosition
|| config.thumbnailNavigation.defaultPosition,
},
],
type: ActionTypes.ADD_WINDOW,
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment