PLT-2676 see if this fixes pre-release (#2799)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
1ac649c4d5
Коммит
88aa2a10b9
@@ -55,17 +55,19 @@ export default class NeedsTeam extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentWillMount() {
|
componentWillMount() {
|
||||||
UserStore.addChangeListener(this.onChanged);
|
|
||||||
TeamStore.addChangeListener(this.onChanged);
|
|
||||||
|
|
||||||
// Emit view action
|
|
||||||
GlobalActions.viewLoggedIn();
|
|
||||||
|
|
||||||
// Go to tutorial if we are first arrivign
|
// Go to tutorial if we are first arrivign
|
||||||
const tutorialStep = PreferenceStore.getInt(Preferences.TUTORIAL_STEP, UserStore.getCurrentId(), 999);
|
const tutorialStep = PreferenceStore.getInt(Preferences.TUTORIAL_STEP, UserStore.getCurrentId(), 999);
|
||||||
if (tutorialStep <= TutorialSteps.INTRO_SCREENS) {
|
if (tutorialStep <= TutorialSteps.INTRO_SCREENS) {
|
||||||
browserHistory.push(Utils.getTeamURLNoOriginFromAddressBar() + '/tutorial');
|
browserHistory.push(Utils.getTeamURLNoOriginFromAddressBar() + '/tutorial');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
UserStore.addChangeListener(this.onChanged);
|
||||||
|
TeamStore.addChangeListener(this.onChanged);
|
||||||
|
|
||||||
|
// Emit view action
|
||||||
|
GlobalActions.viewLoggedIn();
|
||||||
|
|
||||||
// Set up tracking for whether the window is active
|
// Set up tracking for whether the window is active
|
||||||
window.isActive = true;
|
window.isActive = true;
|
||||||
@@ -75,6 +77,7 @@ export default class NeedsTeam extends React.Component {
|
|||||||
ChannelStore.emitChange();
|
ChannelStore.emitChange();
|
||||||
window.isActive = true;
|
window.isActive = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).on('blur', () => {
|
$(window).on('blur', () => {
|
||||||
window.isActive = false;
|
window.isActive = false;
|
||||||
});
|
});
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user