Merge branch 'release/10.4' into dev

pull/8176/head
ulferts 5 years ago
commit 31e95312ae
No known key found for this signature in database
GPG Key ID: A205708DE1284017
  1. 1
      frontend/src/app/modules/fields/edit/field-types/te-work-package-edit-field.component.ts
  2. 2
      frontend/src/app/modules/fields/edit/field-types/work-package-edit-field.component.html
  3. 8
      frontend/src/app/modules/fields/edit/field-types/work-package-edit-field.component.ts

@ -54,6 +54,7 @@ export class TimeEntryWorkPackageEditFieldComponent extends WorkPackageEditField
// existing values.
if (this.referenceOutputs) {
this.referenceOutputs['modeSwitch'] = (mode:TimeEntryWorkPackageAutocompleterMode) => {
this.valuesLoaded = false;
let lastValue = this.requests.lastRequestedValue!;
// Hack to provide a new value to "reset" the input.

@ -4,7 +4,7 @@
model: selectedOption ? selectedOption : '',
required: required,
disabled: inFlight,
typeahead: requests.input$,
typeahead: typeahead,
id: handler.htmlId,
finishedLoading: requests.loading$,
hideSelected: true,

@ -57,6 +57,14 @@ export class WorkPackageEditFieldComponent extends SelectEditFieldComponent {
});
}
public get typeahead() {
if (this.valuesLoaded) {
return false;
} else {
return this.requests.input$;
}
}
protected allowedValuesFilter(query?:string):{} {
let filterParams = super.allowedValuesFilter(query);

Loading…
Cancel
Save