|
|
@ -29,12 +29,17 @@ |
|
|
|
export class WorkPackageEditFormController { |
|
|
|
export class WorkPackageEditFormController { |
|
|
|
public workPackage; |
|
|
|
public workPackage; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constructor(protected NotificationsService) { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public loadSchema() { |
|
|
|
public loadSchema() { |
|
|
|
return this.workPackage.getSchema(); |
|
|
|
return this.workPackage.getSchema(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public updateWorkPackage() { |
|
|
|
public updateWorkPackage() { |
|
|
|
this.workPackage.save(); |
|
|
|
this.workPackage.save().catch(error => { |
|
|
|
|
|
|
|
this.NotificationsService.addError('There was an error ...'); |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|