AuburnACM / auacm

The Auburn ACM Website
Apache License 2.0
15 stars 3 forks source link

Judge Submissions table doesn't get longer when under 10 submits. #114

Closed mvb0005 closed 7 years ago

mvb0005 commented 7 years ago

If you submit with 0 prior submissions, the table length will be 0 so the new submission will not be displayed.

If you submit with 9 or fewer prior submissions, the table will not grow until you refresh the page.

mvb0005 commented 7 years ago

adding a refreshSubmits after submit in judge.component.ts seems to fix the problem. What are your opinions on this fix? onSubmit() { if (this.submitReady()) { this._submissionService.submit(this.file, this.problem, this.python.version, this.user).then(data => {}); this._submissionService.refreshSubmits(this.user.username, 10); return true; } else { return false; }