Skip to content
Snippets Groups Projects
Commit 9e694789 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Show "Backdrops" instead of "Costumes" in tab text if stage is selected.

parent 2a6ac6ff
Branches
No related tags found
No related merge requests found
...@@ -57,6 +57,7 @@ const GUIComponent = props => { ...@@ -57,6 +57,7 @@ const GUIComponent = props => {
onActivateSoundsTab, onActivateSoundsTab,
onActivateTab, onActivateTab,
previewInfoVisible, previewInfoVisible,
targetIsStage,
soundsTabVisible, soundsTabVisible,
tipsLibraryVisible, tipsLibraryVisible,
vm, vm,
...@@ -134,11 +135,19 @@ const GUIComponent = props => { ...@@ -134,11 +135,19 @@ const GUIComponent = props => {
draggable={false} draggable={false}
src={costumesIcon} src={costumesIcon}
/> />
<FormattedMessage {targetIsStage ? (
defaultMessage="Costumes" <FormattedMessage
description="Button to get to the costumes panel" defaultMessage="Backdrops"
id="gui.gui.costumesTab" description="Button to get to the backdrops panel"
/> id="gui.gui.backdropsTab"
/>
) : (
<FormattedMessage
defaultMessage="Costumes"
description="Button to get to the costumes panel"
id="gui.gui.costumesTab"
/>
)}
</Tab> </Tab>
<Tab <Tab
className={tabClassNames.tab} className={tabClassNames.tab}
...@@ -234,6 +243,7 @@ GUIComponent.propTypes = { ...@@ -234,6 +243,7 @@ GUIComponent.propTypes = {
onTabSelect: PropTypes.func, onTabSelect: PropTypes.func,
previewInfoVisible: PropTypes.bool, previewInfoVisible: PropTypes.bool,
soundsTabVisible: PropTypes.bool, soundsTabVisible: PropTypes.bool,
targetIsStage: PropTypes.bool,
tipsLibraryVisible: PropTypes.bool, tipsLibraryVisible: PropTypes.bool,
vm: PropTypes.instanceOf(VM).isRequired vm: PropTypes.instanceOf(VM).isRequired
}; };
......
...@@ -101,6 +101,7 @@ const mapStateToProps = state => ({ ...@@ -101,6 +101,7 @@ const mapStateToProps = state => ({
costumesTabVisible: state.editorTab.activeTabIndex === COSTUMES_TAB_INDEX, costumesTabVisible: state.editorTab.activeTabIndex === COSTUMES_TAB_INDEX,
loadingStateVisible: state.modals.loadingProject, loadingStateVisible: state.modals.loadingProject,
previewInfoVisible: state.modals.previewInfo, previewInfoVisible: state.modals.previewInfo,
targetIsStage: state.targets.stage && state.targets.stage.id === state.targets.editingTarget,
soundsTabVisible: state.editorTab.activeTabIndex === SOUNDS_TAB_INDEX, soundsTabVisible: state.editorTab.activeTabIndex === SOUNDS_TAB_INDEX,
tipsLibraryVisible: state.modals.tipsLibrary tipsLibraryVisible: state.modals.tipsLibrary
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment