mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Extremely minor improvement to sample
This commit is contained in:
@@ -69,7 +69,7 @@ export class AlbumEdit {
|
|||||||
var albumId = this.originalAlbum.AlbumId;
|
var albumId = this.originalAlbum.AlbumId;
|
||||||
|
|
||||||
this._putJson(`/api/albums/${ albumId }/update`, this.form.value).subscribe(response => {
|
this._putJson(`/api/albums/${ albumId }/update`, this.form.value).subscribe(response => {
|
||||||
if (response.status === 200) {
|
if (response.ok) {
|
||||||
this.changesSaved = true;
|
this.changesSaved = true;
|
||||||
} else {
|
} else {
|
||||||
AspNet.Validation.showValidationErrors(response, this.form);
|
AspNet.Validation.showValidationErrors(response, this.form);
|
||||||
|
|||||||
Reference in New Issue
Block a user