Adds Dataset Template description as a tool tip on it's respected list on DMP editor.

This commit is contained in:
gkolokythas 2019-07-31 10:24:54 +03:00
parent d4595c08c4
commit f195adf44d
2 changed files with 4 additions and 3 deletions

View File

@ -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>

View File

@ -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);
});