@ -7,8 +7,8 @@
href
role="link"
focus-ng1-wrapper
(click)="addWorkPackageRow()"
(keydown.enter)="addWorkPackageRow()"
(click)="handleAddRowClick()"
(keydown.enter)="handleAddRowClick()"
[attr.disabled]="!isAllowed"
[attr.aria-label]="text.create"
aria-haspopup="true">
@ -172,6 +172,11 @@ export class WorkPackageInlineCreateComponent implements OnInit, OnChanges, OnDe
});
}
public handleAddRowClick() {
this.addWorkPackageRow();
return false;
public addWorkPackageRow() {
this.wpCreate.createNewWorkPackage(this.projectIdentifier).then((changeset:WorkPackageChangeset) => {
if (!changeset) {