Mercurial > hg > ugly-duckling
changeset 431:686cf74aa0a2
Allow clicking whole list item to extract. Kinda makes the plus button redundant. Add guard in extract method.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Wed, 07 Jun 2017 08:46:30 +0100 |
parents | 372c39e798ac |
children | 5220174f2712 |
files | src/app/feature-extraction-menu/feature-extraction-menu.component.html src/app/feature-extraction-menu/feature-extraction-menu.component.ts |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/app/feature-extraction-menu/feature-extraction-menu.component.html Wed Jun 07 08:39:16 2017 +0100 +++ b/src/app/feature-extraction-menu/feature-extraction-menu.component.html Wed Jun 07 08:46:30 2017 +0100 @@ -4,7 +4,9 @@ *ngFor="let extractor of extractors" > <h3 md-subheader>{{extractor.name}}</h3> - <md-list-item *ngFor="let output of extractor.outputs"> + <md-list-item + *ngFor="let output of extractor.outputs" + (click)="extract(output)"> <md-icon md-list-icon>extension</md-icon> <h4 md-line>{{output.name}}</h4> <p md-line>{{output.combinedKey}}</p>
--- a/src/app/feature-extraction-menu/feature-extraction-menu.component.ts Wed Jun 07 08:39:16 2017 +0100 +++ b/src/app/feature-extraction-menu/feature-extraction-menu.component.ts Wed Jun 07 08:46:30 2017 +0100 @@ -90,7 +90,7 @@ if (this.onRequestOutput) { this.onRequestOutput(); } - if (info) { + if (info && !this.disabled) { this.requestOutput.emit(info); } }