Skip to content

Commit

Permalink
Merge branch 'net7.0_issue#788'
Browse files Browse the repository at this point in the history
  • Loading branch information
tech-gian committed Jun 22, 2023
2 parents eb26b2a + 53efd53 commit f97a11b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/WebUI/ClientApp/src/app/todo/todo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ <h2 class="float-start">{{ selectedList.title }}</h2>
<div class="flex-fill">
<input id="{{ 'itemTitle' + i }}" *ngIf="item == selectedItem" type="text"
class="form-control item-input-control" [(ngModel)]="item.title" (keyup.enter)="updateItem(item, true)"
(blur)="updateItem(item)" autofocus="autofocus" />
(blur)="updateItem(item)" autofocus="autofocus" maxlength="200" />
<div class="todo-item-title" *ngIf="item != selectedItem" [ngClass]="{ 'done-todo': item.done }"
(click)="editItem(item, 'itemTitle' + i)" class="form-control item-input-control">
<span>{{ item.title }}</span>
Expand Down Expand Up @@ -83,7 +83,7 @@ <h4 class="modal-title pull-left">List Options</h4>
<div class="form-group">
<label for="inputListTitle">Title</label>
<input type="text" class="form-control" id="inputListTitle" placeholder="List name..."
[(ngModel)]="listOptionsEditor.title" (keyup.enter)="updateListOptions()" />
[(ngModel)]="listOptionsEditor.title" (keyup.enter)="updateListOptions()" maxlength="200" />
</div>
<div *ngIf="debug">
<pre>{{ listOptionsEditor | json }}</pre>
Expand Down Expand Up @@ -177,7 +177,7 @@ <h4 class="modal-title pull-left">New List</h4>
<div class="form-group">
<label for="title">Title</label>
<input type="text" class="form-control" id="title" placeholder="List title..." [(ngModel)]="newListEditor.title"
[ngClass]="{ 'is-invalid': newListEditor.error }" (keyup.enter)="addList()" />
[ngClass]="{ 'is-invalid': newListEditor.error }" (keyup.enter)="addList()" maxlength="200" />
<div *ngIf="newListEditor.error" class="invalid-feedback">
{{ newListEditor.error }}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/WebUI/ClientApp/src/app/todo/todo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class TodoComponent implements OnInit {
this.newListEditor = {};
},
error => {
const errors = JSON.parse(error.response);
const errors = JSON.parse(error.response).errors;

if (errors && errors.Title) {
this.newListEditor.error = errors.Title[0];
Expand Down

0 comments on commit f97a11b

Please sign in to comment.