提交 fd80f0de 编写于 作者: M Matt Bierner

Don't potentially allow showing survey multiple times if user does not...

Don't potentially allow showing survey multiple times if user does not interact with a previously shown survey
上级 f6b11178
......@@ -90,6 +90,10 @@ class Survey {
return false;
}
public willShow() {
this._hasShownInThisSession = true;
}
public markComplete() {
this._hasShownInThisSession = true;
this.memento.update(this.isCompletedMementoKey, true);
......@@ -131,6 +135,7 @@ export class Surveyor {
public surveyReady(surveyId: string): void {
const survey = this.tryGetActiveSurvey(surveyId);
if (survey && survey.trigger()) {
survey.willShow();
this.showSurveyToUser(survey);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册