WIP Work Package Sync

pull/4338/head
Roman Roelofsen 9 years ago
parent f903a25fd5
commit a7a03920a9
  1. 7
      frontend/app/components/wp-panels/overview-panel/wp-overview-panel.directive.ts

@ -28,15 +28,18 @@
import {scopedObservable} from "../../../helpers/angular-rx-utils";
import {openprojectModule} from "../../../angular-modules";
import {WorkPackageCacheService, TemporaryWorkPackage} from "../../work-packages/work-package-cache.service";
import IScope = angular.IScope;
import WorkPackage = op.WorkPackage;
import {WorkPackageCacheService} from "../../work-packages/work-package-cache.service";
import WorkPackageResource from "../../api/api-v3/hal-resources/work-package-resource.service";
export class OverviewPanelController {
public workPackage: TemporaryWorkPackage;
public workPackage: WorkPackageResource;
constructor($scope: IScope, $stateParams: any, private wpCacheService: WorkPackageCacheService) {
const wpId = parseInt($stateParams.workPackageId);
scopedObservable($scope, wpCacheService.loadWorkPackage(wpId)).subscribe(wp => {

Loading…
Cancel
Save