Skip to content

Commit

Permalink
feat(workflows): navigate to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaviju committed Sep 15, 2023
1 parent 5c75541 commit 31b5c28
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,16 @@ export class ProjectFeatureKanbanComponent {
return;
}

const workflowSlug =
this.route.snapshot.queryParamMap.get('workflow') ?? 'main';
this.store.dispatch(KanbanActions.initKanban({ workflow: workflowSlug }));
this.route.paramMap.subscribe((params) => {
const workflowSlug = params.get('workflow') ?? 'main';
this.store.dispatch(KanbanActions.initKanban({ workflow: workflowSlug }));
});

// Load on init kanban page. Not on every reload
// const workflowSlug = this.route.snapshot.params['workflow'];
// this.store.dispatch(
// KanbanActions.initKanban({ workflow: workflowSlug })
// );

this.checkInviteModalStatus();
this.state.connect(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ const routes: Routes = [
},
{
path: ':slug/kanban/:workflow',
data: {
reuseComponent: false,
},
loadChildren: () =>
import(
'~/app/modules/project/feature-view-setter/project-feature-view-setter.module'
Expand Down

0 comments on commit 31b5c28

Please sign in to comment.