Skip to content
Snippets Groups Projects
Commit 7dc80b5c authored by Klaus-Dieter Quibeldey-Cirkel's avatar Klaus-Dieter Quibeldey-Cirkel
Browse files

Merge branch '722-the-topic-cloud-does-not-start-from-zero-in-brainstorming-mode' into 'staging'

Resolve "The topic cloud does not start from zero in brainstorming mode"

Closes #722

See merge request arsnova/frag.jetzt!727
parents 4e371cbd 810eadb6
No related merge requests found
......@@ -165,11 +165,13 @@ export class TopicCloudFilterComponent implements OnInit, OnDestroy {
switch (this.continueFilter) {
case 'continueWithAll':
// all questions allowed
filter = new CommentListFilter(null);
filter = new CommentListFilter(this.tmpFilter);
filter.resetToDefault();
break;
case 'continueWithAllFromNow':
filter = new CommentListFilter(null);
filter = new CommentListFilter(this.tmpFilter);
filter.resetToDefault();
filter.period = Period.fromNow;
filter.fromNow = new Date().getTime();
break;
......@@ -183,10 +185,10 @@ export class TopicCloudFilterComponent implements OnInit, OnDestroy {
}
localStorage.setItem('tag-cloud-question', this.question);
filter.save();
this.dialogRef.close(this.router.navigateByUrl(this.target));
this.dialogRef.close();
this.router.navigateByUrl(this.target).then(() => {
filter.save();
});
};
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment