Adds Dataset Template description as a tool tip on it's respected list on DMP editor.
This commit is contained in:
parent
d4595c08c4
commit
f195adf44d
|
@ -1,7 +1,7 @@
|
|||
<h4 mat-dialog-title>{{ 'DMP-EDITOR.DATASET-TEMPLATE-LIST.TITLE' | translate }}</h4>
|
||||
<div mat-dialog-content>
|
||||
<mat-selection-list #datasetsprofiles [ngModel]="selectedOptions">
|
||||
<mat-list-option *ngFor="let profile of profiles" [value]="profile" [selected]='isOptionSelected(profile)'>
|
||||
<mat-selection-list #datasetsprofiles [ngModel]="selectedOptions" >
|
||||
<mat-list-option *ngFor="let profile of profiles" [value]="profile" [selected]='isOptionSelected(profile)' matTooltip="{{profile.description}}">
|
||||
{{profile.label}}
|
||||
</mat-list-option>
|
||||
</mat-selection-list>
|
||||
|
|
|
@ -35,7 +35,8 @@ export class AvailableProfilesComponent extends BaseComponent implements OnInit
|
|||
profiles.selectedOptions.selected.forEach(element => {
|
||||
const selectedElement = {
|
||||
id: element.value.id,
|
||||
label: element.value.label
|
||||
label: element.value.label,
|
||||
description: element.value.description
|
||||
}
|
||||
this.selectedProfiles.push(selectedElement);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue