OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Adapt inputs of `<op-project-autocompleter`
Henriette Dargef2a573ea632a
diff --git a/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.html b/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.htmlindex 8b7a4213944..20649a7f09b 100644--- a/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.html+++ b/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.html@@ -14,10 +14,10 @@<op-project-autocompleter*ngIf="active"- (valueChange)="selectProject($event)"+ (change)="selectProject($event)"(keydown.escape)="active = false"- [apiFilters]="APIFilters"+ [filters]="APIFilters"[mapResultsFn]="this.mapProjectsFn.bind(this)"[placeholder]="text.please_select"diff --git a/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts b/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.tsindex 208707b61ac..b08241531d8 100644--- a/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts+++ b/frontend/src/app/features/user-preferences/notifications-settings/inline-create/notification-setting-inline-create.component.ts@@ -38,8 +38,8 @@ export class NotificationSettingInlineCreateComponent {already_selected: this.I18n.t('js.notifications.settings.project_specific.already_selected'),};- public get APIFilters():ApiV3ListFilter[] {- return [['visible', '=', [this.userId]]];+ public get APIFilters():IAPIFilter[] {+ return [{ name: 'visible', operator: '=', values: [this.userId] }];}constructor(diff --git a/frontend/src/app/features/work-packages/components/filters/filter-project/filter-project.component.html b/frontend/src/app/features/work-packages/components/filters/filter-project/filter-project.component.htmlindex 2d05be1578d..a3076a3649d 100644--- a/frontend/src/app/features/work-packages/components/filters/filter-project/filter-project.component.html+++ b/frontend/src/app/features/work-packages/components/filters/filter-project/filter-project.component.html@@ -3,13 +3,13 @@id="div-values-{{filter.id}}"><op-project-autocompleter- [value]="filter.values"+ [model]="filter.values"[focusDirectly]="shouldFocus"[multiple]="true"[appendTo]="'body'"[id]="'values-' + filter.id"class="advanced-filters--ng-select -multi-select"- (valueChange)="onChange($event)"- [apiFilters]="additionalProjectApiFilters"+ (change)="onChange($event)"+ [filters]="additionalProjectApiFilters"></op-project-autocompleter></div>diff --git a/frontend/src/app/features/work-packages/components/filters/filter-project/filter-project.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-project/filter-project.component.tsindex 1473adf415e..ead2d84b843 100644--- a/frontend/src/app/features/work-packages/components/filters/filter-project/filter-project.component.ts+++ b/frontend/src/app/features/work-packages/components/filters/filter-project/filter-project.component.ts@@ -57,7 +57,7 @@ export class FilterProjectComponent extends UntilDestroyedMixin implements OnIni@Output() public filterChanged = new DebouncedEventEmitter<QueryFilterInstanceResource>(componentDestroyed(this), 0);- additionalProjectApiFilters:ApiV3ListFilter[] = [];+ additionalProjectApiFilters:IAPIFilter[] = [];constructor(readonly I18n:I18nService,@@ -70,7 +70,7 @@ export class FilterProjectComponent extends UntilDestroyedMixin implements OnIningOnInit():void {const projectID = this.currentProjectService.id;if (projectID && (this.filter.id === 'subprojectId' || this.filter.id === 'onlySubproject')) {- this.additionalProjectApiFilters.push(['ancestor', '=', [projectID]]);+ this.additionalProjectApiFilters.push({ name: 'ancestor', operator: '=', values: [projectID] });}}diff --git a/frontend/src/app/shared/components/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component.ts b/frontend/src/app/shared/components/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component.tsindex 3adf6f556f5..b3c4b553be5 100644--- a/frontend/src/app/shared/components/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component.ts+++ b/frontend/src/app/shared/components/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component.ts@@ -43,10 +43,10 @@ export const autocompleteSelectDecorationSelector = 'autocomplete-select-decorattemplate: `<op-project-autocompleter*ngIf="isProjectField()"- [value]="currentProjectSelection"+ [model]="currentProjectSelection"[multiple]="multiselect"[labelForId]="labelForId"- (valueChange)="updateProjectSelection($event)"+ (change)="updateProjectSelection($event)"appendTo="body"></op-project-autocompleter>diff --git a/frontend/src/app/shared/components/fields/edit/field-types/project-edit-field.component.html b/frontend/src/app/shared/components/fields/edit/field-types/project-edit-field.component.htmlindex 8e3ae39df91..8c440f62ea1 100644--- a/frontend/src/app/shared/components/fields/edit/field-types/project-edit-field.component.html+++ b/frontend/src/app/shared/components/fields/edit/field-types/project-edit-field.component.html@@ -2,15 +2,15 @@*ngIf="url; else loadingTemplate"[ngClass]="'inline-edit--field ' + handler.fieldName"- [value]="value"+ [model]="value"[url]="url"- [apiFilters]="APIFilters"+ [filters]="APIFilters"[focusDirectly]="!(handler.inEditMode || isNew)"[openDirectly]="!isNew"[isInlineContext]="true"appendTo=".op-wide-autocomplete-wrapper"- (valueChange)="onModelChange($event)"+ (change)="onModelChange($event)"(cancel)="handler.handleUserCancel()"></op-project-autocompleter>diff --git a/frontend/src/app/shared/components/fields/edit/field-types/project-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/project-edit-field.component.tsindex e6cd6baefaf..b0346090654 100644--- a/frontend/src/app/shared/components/fields/edit/field-types/project-edit-field.component.ts+++ b/frontend/src/app/shared/components/fields/edit/field-types/project-edit-field.component.ts@@ -115,14 +115,14 @@ export class ProjectEditFieldComponent extends EditFieldComponent implements OnIreturn this.handler.handleUserSubmit();}- public get APIFilters():(string | string[])[][] {+ public get APIFilters():IAPIFilter[] {const filters = [- ['active', '=', ['t']],+ { name: 'active', operator: '=', values: ['t'] },];if (isNewResource(this.resource) && this.change.value('type')) {const typeId = idFromLink((this.change.value('type') as HalResource).href);- filters.push(['type_id', '=', [typeId]]);+ filters.push({ name: 'type_id', operator: '=', values: [typeId] });}return filters;