Skip to content
Snippets Groups Projects
Commit 1eda0e5a authored by rhenck's avatar rhenck
Browse files

[editor] Limit input assist for mathtable modes

#725
parent 0cb37f3f
No related branches found
No related tags found
No related merge requests found
Pipeline #67615 failed
......@@ -37,7 +37,22 @@ import { CombinedProperties } from 'editor/src/app/components/properties-panel/e
{{ option === null ? ('propertiesPanel.none' | translate) : ('propertiesPanel.' + option | translate) }}
</mat-option>
</ng-container>
<ng-container *ngIf="combinedProperties.type === 'math-table'">
<ng-container *ngIf="combinedProperties.type === 'math-table' &&
['addition', 'subtraction'].includes($any(combinedProperties.operation))">
<mat-option *ngFor="let option of [null, 'numbers']"
[value]="option">
{{ option === null ? ('propertiesPanel.none' | translate) : ('propertiesPanel.' + option | translate) }}
</mat-option>
</ng-container>
<ng-container *ngIf="combinedProperties.type === 'math-table' &&
combinedProperties.operation === 'multiplication'">
<mat-option *ngFor="let option of [null, 'numbers', 'numbersAndBasicOperators']"
[value]="option">
{{ option === null ? ('propertiesPanel.none' | translate) : ('propertiesPanel.' + option | translate) }}
</mat-option>
</ng-container>
<ng-container *ngIf="combinedProperties.type === 'math-table' &&
combinedProperties.operation === 'variable'">
<mat-option *ngFor="let option of [null, 'numbers', 'numbersAndBasicOperators', 'numbersAndOperators']"
[value]="option">
{{ option === null ? ('propertiesPanel.none' | translate) : ('propertiesPanel.' + option | translate) }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment