Skip to content

Commit

Permalink
fix(front): i#4070 workflow without project slug not working
Browse files Browse the repository at this point in the history
  • Loading branch information
cocotime committed Oct 6, 2023
1 parent 000a3ea commit 76aa660
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ const routes: Routes = [
kanban: true,
},
},
{
path: 'kanban/:workflow',
loadChildren: () =>
import(
'~/app/modules/project/feature-view-setter/project-feature-view-setter.module'
).then((m) => m.ProjectFeatureViewSetterModule),
canDeactivate: [CanDeactivateGuard],
data: {
kanban: true,
},
},
{
path: ':slug/stories/:storyRef',
loadChildren: () =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,12 @@ export class ProjectFeatureShellComponent implements OnDestroy, AfterViewInit {

if (isKanban) {
void this.router.navigate(
[`project/${project.id}/${project.slug}/kanban`],
[
`project/${project.id}/${project.slug}/kanban/${
(active.params.workflow as Workflow['slug']) ||
project.workflows[0].slug
}`,
],
{ replaceUrl: true }
);
} else if (isNewKanban) {
Expand Down

0 comments on commit 76aa660

Please sign in to comment.