Skip to content
Snippets Groups Projects
Commit 3f987097 authored by DD's avatar DD
Browse files

Add switching to costumes tab to surprise button also. All backdrop adding...

Add switching to costumes tab to surprise button also. All backdrop adding buttons should switch tabs.
parent c1780800
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,9 @@ class StageSelector extends React.Component {
handleSurpriseBackdrop () {
// @todo should this not add a backdrop you already have?
const item = backdropLibraryContent[Math.floor(Math.random() * backdropLibraryContent.length)];
this.addBackdropFromLibraryItem(item);
this.addBackdropFromLibraryItem(item).then(() => {
this.props.onActivateTab(COSTUMES_TAB_INDEX);
});
}
handleEmptyBackdrop () {
// @todo this is brittle, will need to be refactored for localized libraries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment