UUDigitalHumanitieslab / I-analyzer

The great textmining tool that obviates all others
https://ianalyzer.hum.uu.nl
MIT License
6 stars 2 forks source link

Dropdown n-gram doesn't work #1594

Closed Meesch closed 2 weeks ago

Meesch commented 4 weeks ago

During the demo I figured out that the dropdown menu for 'Compensate for Frequency' doesn't work because the wrong options are supplied to the dropdown in ngram.component.html, line 51:

<ia-dropdown [value]="currentFreqCompensationOption"
    (onChange)="onParameterChange('freqCompensation', $event.value)">
    <span iaDropdownLabel>{{currentFreqCompensationOption?.label}}</span>
    <div iaDropdownMenu>
        <a *ngFor="let option of positionsOptions" // <-- this is supposed to be freqCompensationOptions
            iaDropdownItem [value]="option">
            {{option.label}}
        </a>
    </div>
</ia-dropdown>