working on wpCacheService

pull/4338/head
Roman Roelofsen 9 years ago
parent 572781ce02
commit 60165d723a
  1. 1
      frontend/app/components/work-packages/work-package-sync-edit.service.ts
  2. 17
      frontend/app/components/wp-panels/overview-panel/wp-overview-panel.directive.html
  3. 1
      frontend/app/components/wp-panels/overview-panel/wp-overview-panel.directive.ts
  4. 3
      frontend/app/components/wp-table/wp-table.directive.html

@ -39,6 +39,7 @@ export class WorkPackageCacheService {
} }
setWorkPackageList(list: WorkPackage[]) { setWorkPackageList(list: WorkPackage[]) {
console.log("setWorkPackageList()");
this.workPackagesSubject.onNext(list); this.workPackagesSubject.onNext(list);
} }

@ -1,5 +1,4 @@
<!--
<div wp-edit-form="$ctrl.workPackage"> <div wp-edit-form="$ctrl.workPackage">
<div ng-repeat="column in columns" <div ng-repeat="column in columns"
@ -20,7 +19,19 @@
</div> </div>
-->
{{$ctrl.workPackage.subject}} <!--{{$ctrl.workPackage.subject}}-->
<wp-edit displayAs="tr"></wp-edit>
<!-- ____________________________________________________________ -->
<tr ng-show="displayAsTr">
aaa
</tr>
<div ng-show="displayAsDiv">
aaa
</div>

@ -37,6 +37,7 @@ export class OverviewPanelController {
constructor($scope: IScope, $stateParams: any, private wpCacheService: WorkPackageCacheService) { constructor($scope: IScope, $stateParams: any, private wpCacheService: WorkPackageCacheService) {
const wpId = parseInt($stateParams.workPackageId); const wpId = parseInt($stateParams.workPackageId);
wpCacheService.loadWorkPackage(wpId).subscribe(wp => { wpCacheService.loadWorkPackage(wpId).subscribe(wp => {
console.log("work package erhalten");
this.workPackage = wp; this.workPackage = wp;
}); });
} }

@ -102,6 +102,9 @@
wp-edit-form="row.object"> wp-edit-form="row.object">
<td wp-edit-field ng-repeat="field in fields" name="field.name"></td>
<td class="checkbox -short hide-when-print"> <td class="checkbox -short hide-when-print">
<accessible-checkbox name="ids[]" <accessible-checkbox name="ids[]"
checkbox-id="work_package{{row.object.id}}" checkbox-id="work_package{{row.object.id}}"

Loading…
Cancel
Save