зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1119485 - Link clicker UI no longer resets to the stat conversation view after giving feedback. r=nperriault
This commit is contained in:
Родитель
439ead04fd
Коммит
e1a12512a0
|
@ -182,6 +182,13 @@ loop.shared.views.FeedbackView = (function(l10n) {
|
|||
|
||||
componentDidMount: function() {
|
||||
this._timer = setInterval(function() {
|
||||
if (this.state.countdown == 1) {
|
||||
clearInterval(this._timer);
|
||||
if (this.props.onAfterFeedbackReceived) {
|
||||
this.props.onAfterFeedbackReceived();
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.setState({countdown: this.state.countdown - 1});
|
||||
}.bind(this), 1000);
|
||||
},
|
||||
|
@ -193,12 +200,6 @@ loop.shared.views.FeedbackView = (function(l10n) {
|
|||
},
|
||||
|
||||
render: function() {
|
||||
if (this.state.countdown < 1) {
|
||||
clearInterval(this._timer);
|
||||
if (this.props.onAfterFeedbackReceived) {
|
||||
this.props.onAfterFeedbackReceived();
|
||||
}
|
||||
}
|
||||
return (
|
||||
React.createElement(FeedbackLayout, {title: l10n.get("feedback_thank_you_heading")},
|
||||
React.createElement("p", {className: "info thank-you"},
|
||||
|
|
|
@ -182,6 +182,13 @@ loop.shared.views.FeedbackView = (function(l10n) {
|
|||
|
||||
componentDidMount: function() {
|
||||
this._timer = setInterval(function() {
|
||||
if (this.state.countdown == 1) {
|
||||
clearInterval(this._timer);
|
||||
if (this.props.onAfterFeedbackReceived) {
|
||||
this.props.onAfterFeedbackReceived();
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.setState({countdown: this.state.countdown - 1});
|
||||
}.bind(this), 1000);
|
||||
},
|
||||
|
@ -193,12 +200,6 @@ loop.shared.views.FeedbackView = (function(l10n) {
|
|||
},
|
||||
|
||||
render: function() {
|
||||
if (this.state.countdown < 1) {
|
||||
clearInterval(this._timer);
|
||||
if (this.props.onAfterFeedbackReceived) {
|
||||
this.props.onAfterFeedbackReceived();
|
||||
}
|
||||
}
|
||||
return (
|
||||
<FeedbackLayout title={l10n.get("feedback_thank_you_heading")}>
|
||||
<p className="info thank-you">{
|
||||
|
|
Загрузка…
Ссылка в новой задаче