fix wp inline create

pull/6242/head
Jens Ulferts 7 years ago
parent c5619645f5
commit 7f1dc0f8c6
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 4
      frontend/app/components/wp-inline-create/wp-inline-create.component.html
  2. 5
      frontend/app/components/wp-inline-create/wp-inline-create.component.ts

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

Loading…
Cancel
Save