OneIdentity / IdentityManager.Imx

HTML5 source code for Identity Manager web apps
Other
32 stars 133 forks source link

Data Source Toolbar - Filter not set initial anymore #171

Open DominicFe opened 2 months ago

DominicFe commented 2 months ago

Hi,

Since the changes which were made on July 3, 2024, I have a problem with the filters. There were changes done at the file "data-source-toolbar.component.ts". Since then the filters weren't set initial anymore.

identities.component.ts:

this.dataModel = this.isAdmin ? await this.identitiesService.getDataModelAdmin() : await this.identitiesService.getDataModelReport(); this.filterOptions = this.dataModel.Filters; this.groupingOptions = this.getGroupableProperties(this.dataModel.Properties);

  if (!this.isAdmin) {
    const indexActive = this.filterOptions.findIndex((elem) => elem.Name === 'isinactive');
    if (indexActive > -1) {
      this.filterOptions[indexActive].InitialValue = '0';
    }
    const reports = this.filterOptions.findIndex((elem) => elem.Name === 'reports');
    if (reports > -1) {
      this.filterOptions[reports].InitialValue = '0';
    }
  }

In the filterOptions I now always get for "this.filterOptions[].CurrentValue" the value "Undefined". image

These filters are not set initial anymore, i always have to select them now manually:

image

Regards, Dominic

BertramBo commented 3 days ago

are there any new informations about this issue?