Extremely minor improvement to sample

This commit is contained in:
SteveSandersonMS
2015-12-11 19:06:30 +00:00
parent a83e4d85e4
commit bba388944d

View File

@@ -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);