RED-7023 - Option to compare (effective) dossier dictionary with template dictionary
This commit is contained in:
parent
9bc52de57d
commit
9d8a9c04ad
@ -33,9 +33,10 @@
|
|||||||
icon="iqser:download"
|
icon="iqser:download"
|
||||||
></iqser-circle-button>
|
></iqser-circle-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="compare">
|
<div class="compare">
|
||||||
<div class="iqser-input-group mr-16">
|
<div class="iqser-input-group mr-16">
|
||||||
<mat-checkbox [(ngModel)]="compare" color="primary">
|
<mat-checkbox (change)="toggleCompareMode()" color="primary">
|
||||||
{{ 'dictionary-overview.compare.compare' | translate }}
|
{{ 'dictionary-overview.compare.compare' | translate }}
|
||||||
</mat-checkbox>
|
</mat-checkbox>
|
||||||
</div>
|
</div>
|
||||||
@ -64,7 +65,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<div *ngIf="!filterByDossierTemplate && !!dossiers.length" class="iqser-input-group w-200 mt-0">
|
<div
|
||||||
|
*ngIf="!filterByDossierTemplate && !!dossiers.length"
|
||||||
|
class="iqser-input-group w-200 mt-0"
|
||||||
|
[class.not-clickable]="dossiers.length === 2 && !!selectedDossier.id"
|
||||||
|
>
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select
|
<mat-select
|
||||||
[(ngModel)]="selectedDossier"
|
[(ngModel)]="selectedDossier"
|
||||||
|
|||||||
@ -52,6 +52,10 @@ form {
|
|||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.not-clickable {
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.w-450 {
|
.w-450 {
|
||||||
|
|||||||
@ -217,6 +217,13 @@ export class DictionaryManagerComponent implements OnChanges {
|
|||||||
this._scrollToCurrentMatch();
|
this._scrollToCurrentMatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toggleCompareMode() {
|
||||||
|
this.compare = !this.compare;
|
||||||
|
if (!this.compare) {
|
||||||
|
this.selectedDossier = this.selectDossier;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
ngOnChanges(changes: SimpleChanges): void {
|
||||||
if (
|
if (
|
||||||
(changes.selectedDictionaryType || changes.activeEntryType) &&
|
(changes.selectedDictionaryType || changes.activeEntryType) &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user