Mercurial > hg > ugly-duckling
diff src/app/app.component.ts @ 466:8820a133bcf5
Don't save progress changes etc to the state history.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 30 Jun 2017 14:50:00 +0100 |
parents | 50f61d1945db |
children | c9f12a9c1d5c |
line wrap: on
line diff
--- a/src/app/app.component.ts Fri Jun 30 14:49:40 2017 +0100 +++ b/src/app/app.component.ts Fri Jun 30 14:50:00 2017 +0100 @@ -93,7 +93,7 @@ return; } - this.analyses.set( + this.analyses.setMutating( index, Object.assign( {}, @@ -132,7 +132,7 @@ // TODO re-ordering of items for display // , one alternative is a Angular Pipe / Filter for use in the Template - this.analyses.unshift(pending); + this.analyses.unshiftMutating(pending); } extractFeatures(outputInfo: ExtractorOutputInfo): string { @@ -155,7 +155,7 @@ id: `${++this.countingId}`, progress: 0 }; - this.analyses.unshift(placeholderCard); + this.analyses.unshiftMutating(placeholderCard); this.sendExtractionRequest(placeholderCard); return placeholderCard.id; }