diff --git a/web/src/app/components/create-game-form/create-game-form.component.html b/web/src/app/components/create-game-form/create-game-form.component.html index c975c5b166a8cca4b4bfbc0abc1d4827ac83060c..d5c60dfb84c46b93783847169f88269ea6df1579 100644 --- a/web/src/app/components/create-game-form/create-game-form.component.html +++ b/web/src/app/components/create-game-form/create-game-form.component.html @@ -41,7 +41,7 @@ </div> <button type="submit" class="btn btn-success" [disabled]="!gameForm.form.valid">Submit</button> - <button type="button" class="btn btn-default" (click)="newGame(); gameForm.reset()">New Game</button> + <button type="button" class="btn btn-default" (click)="resetForm(); gameForm.reset()">Reset Form</button> </form> </div> diff --git a/web/src/app/components/create-game-form/create-game-form.component.ts b/web/src/app/components/create-game-form/create-game-form.component.ts index 43a9761a156cb191ff152f8fa2c110de82052eb8..3be4402ed74b6ff2757be6ae6fd68e2b62120b40 100644 --- a/web/src/app/components/create-game-form/create-game-form.component.ts +++ b/web/src/app/components/create-game-form/create-game-form.component.ts @@ -41,7 +41,7 @@ export class CreateGameFormComponent implements OnInit { this.submitted = true; } - newGame() : void { + resetForm() : void { this.model = {gameDateTime: null, homeTeam: null, awayTeam: null}; } diff --git a/web/src/app/components/update-game-score-form/update-game-score-form.component.html b/web/src/app/components/update-game-score-form/update-game-score-form.component.html index 736a59df4c858580b52c4377af4d4a3580585399..cfa8cfa7475b6c6f8d9c96e23ca9c2be1ee1a877 100644 --- a/web/src/app/components/update-game-score-form/update-game-score-form.component.html +++ b/web/src/app/components/update-game-score-form/update-game-score-form.component.html @@ -29,7 +29,7 @@ </div> <button type="submit" class="btn btn-success" [disabled]="!updateGameScoreForm.form.valid">Submit</button> - <button type="button" class="btn btn-default" (click)="resetScore(); updateGameScoreForm.reset()">Reset Score</button> + <button type="button" class="btn btn-default" (click)="resetForm(); updateGameScoreForm.reset()">Reset Form</button> </form> </div> diff --git a/web/src/app/components/update-game-score-form/update-game-score-form.component.ts b/web/src/app/components/update-game-score-form/update-game-score-form.component.ts index 98bd39b37035c7166da0022a9965662a18c88a69..9ba1182304b80abf7a65dc5a4339ab2ccab5f9b3 100644 --- a/web/src/app/components/update-game-score-form/update-game-score-form.component.ts +++ b/web/src/app/components/update-game-score-form/update-game-score-form.component.ts @@ -41,7 +41,7 @@ export class UpdateGameScoreFormComponent implements OnInit { this.submitted = true; } - resetScore() : void { + resetForm() : void { this.modelCopy.homeTeamScore = this.model.homeTeamScore; this.modelCopy.awayTeamScore = this.model.awayTeamScore; }