Start working on filter section for team planner

pull/9893/head
Henriette Darge 3 years ago committed by Benjamin Bädorf
parent 14716e5e58
commit ed0141bae2
No known key found for this signature in database
GPG Key ID: 069CA2D117AB5CCF
  1. 11
      frontend/src/app/features/team-planner/team-planner/page/team-planner-page.component.ts
  2. 7
      frontend/src/app/features/team-planner/team-planner/team-planner.routes.ts

@ -6,6 +6,7 @@ import {
} from '@angular/core';
import {
ToolbarButtonComponentDefinition,
DynamicComponentDefinition,
ViewPartitionState,
} from 'core-app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component';
import {
@ -17,6 +18,8 @@ import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';
import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';
import { BackRoutingService } from 'core-app/features/work-packages/components/back-routing/back-routing.service';
import { ZenModeButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component';
import { WorkPackageFilterButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.component';
import { WorkPackageFilterContainerComponent } from 'core-app/features/work-packages/components/filters/filter-container/filter-container.directive';
@Component({
templateUrl: '../../../work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html',
@ -36,8 +39,9 @@ export class TeamPlannerPageComponent extends UntilDestroyedMixin {
/** Current query title to render */
selectedTitle = this.text.title;
/** Disable filter container for now */
filterContainerDefinition = null;
filterContainerDefinition:DynamicComponentDefinition = {
component: WorkPackageFilterContainerComponent,
};
/** We need to pass the correct partition state to the view to manage the grid */
currentPartition:ViewPartitionState = '-split';
@ -56,6 +60,9 @@ export class TeamPlannerPageComponent extends UntilDestroyedMixin {
/** Define the buttons shown in the toolbar */
toolbarButtonComponents:ToolbarButtonComponentDefinition[] = [
{
component: WorkPackageFilterButtonComponent,
},
{
component: ZenModeButtonComponent,
},

@ -37,11 +37,16 @@ export const TEAM_PLANNER_ROUTES:Ng2StateDeclaration[] = [
{
name: 'team_planner',
parent: 'optional_project',
url: '/team_planner',
url: '/team_planner?query_id&query_props',
redirectTo: 'team_planner.page',
views: {
'!$default': { component: WorkPackagesBaseComponent },
},
params: {
query_id: { type: 'query', dynamic: true },
// Use custom encoder/decoder that ensures validity of URL string
query_props: { type: 'opQueryString' },
},
},
{
name: 'team_planner.page',

Loading…
Cancel
Save