diff --git a/package.json b/package.json index 64c4dca..fe7f7ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "ui", - "version": "0.0.0", + "name": "definma", + "version": "0.5.5", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/src/app/sample/sample.component.ts b/src/app/sample/sample.component.ts index ce36aa6..67c2b85 100644 --- a/src/app/sample/sample.component.ts +++ b/src/app/sample/sample.component.ts @@ -493,7 +493,7 @@ export class SampleComponent implements OnInit, AfterContentChecked { return new Observable(observer => { if (value !== '') { this.api.get<{ _id: string, number: string }[]>( - '/samples?status=all&page-size=25&sort=number-asc&fields[]=number&fields[]=_id&' + + '/samples?status[]=validated&status[]=new&page-size=25&sort=number-asc&fields[]=number&fields[]=_id&' + 'filters[]=%7B%22mode%22%3A%22stringin%22%2C%22field%22%3A%22number%22%2C%22values%22%3A%5B%22' + value + '%22%5D%7D', data => { console.log(data); this.sampleReferenceAutocomplete[this.currentSRIndex] = data.map(e => e.number);