Skip to content

Commit

Permalink
fix: fix wrong breadcrumb on projects page (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
djaiss authored Aug 30, 2021
1 parent d61cd34 commit 672bf12
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 30 deletions.
7 changes: 3 additions & 4 deletions resources/js/Pages/Company/Project/Decisions/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@
<template>
<layout :notifications="notifications">
<div class="ph2 ph5-ns">
<breadcrumb
:root-url="'/' + $page.props.auth.company.id + '/company/projects'"
:root="$t('app.breadcrumb_project_list')"
:has-more="false"
<breadcrumb :has-more="false"
:previous-url="route('projects.index', { company: $page.props.auth.company.id})"
:previous="$t('app.breadcrumb_project_list')"
>
{{ $t('app.breadcrumb_project_detail') }}
</breadcrumb>
Expand Down
7 changes: 3 additions & 4 deletions resources/js/Pages/Company/Project/Files/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
<template>
<layout :notifications="notifications">
<div class="ph2 ph5-ns">
<breadcrumb
:root-url="'/' + $page.props.auth.company.id + '/company/projects'"
:root="$t('app.breadcrumb_project_list')"
:has-more="false"
<breadcrumb :has-more="false"
:previous-url="route('projects.index', { company: $page.props.auth.company.id})"
:previous="$t('app.breadcrumb_project_list')"
>
{{ $t('app.breadcrumb_project_detail') }}
</breadcrumb>
Expand Down
7 changes: 3 additions & 4 deletions resources/js/Pages/Company/Project/Members/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@
<template>
<layout :notifications="notifications">
<div class="ph2 ph5-ns">
<breadcrumb
:root-url="'/' + $page.props.auth.company.id + '/company/projects'"
:root="$t('app.breadcrumb_project_list')"
:has-more="false"
<breadcrumb :has-more="false"
:previous-url="route('projects.index', { company: $page.props.auth.company.id})"
:previous="$t('app.breadcrumb_project_list')"
>
{{ $t('app.breadcrumb_project_detail') }}
</breadcrumb>
Expand Down
9 changes: 4 additions & 5 deletions resources/js/Pages/Company/Project/Messages/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@
<template>
<layout :notifications="notifications">
<div class="ph2 ph5-ns">
<breadcrumb
:root-url="'/' + $page.props.auth.company.id + '/company/projects'"
:root="$t('app.breadcrumb_project_list')"
:has-more="false"
<breadcrumb :has-more="false"
:previous-url="route('projects.index', { company: $page.props.auth.company.id})"
:previous="$t('app.breadcrumb_project_list')"
>
{{ $t('app.breadcrumb_project_message_list') }}
{{ $t('app.breadcrumb_project_detail') }}
</breadcrumb>

<!-- BODY -->
Expand Down
9 changes: 4 additions & 5 deletions resources/js/Pages/Company/Project/Messages/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@
<template>
<layout :notifications="notifications">
<div class="ph2 ph5-ns">
<breadcrumb
:root-url="'/' + $page.props.auth.company.id + '/company/projects'"
:root="$t('app.breadcrumb_project_list')"
:has-more="false"
<breadcrumb :has-more="false"
:previous-url="route('projects.index', { company: $page.props.auth.company.id})"
:previous="$t('app.breadcrumb_project_list')"
>
{{ $t('app.breadcrumb_project_message') }}
{{ $t('app.breadcrumb_project_detail') }}
</breadcrumb>

<!-- BODY -->
Expand Down
7 changes: 3 additions & 4 deletions resources/js/Pages/Company/Project/Tasks/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
<template>
<layout :notifications="notifications">
<div class="ph2 ph5-ns">
<breadcrumb
:root-url="'/' + $page.props.auth.company.id + '/company/projects'"
:root="$t('app.breadcrumb_project_list')"
:has-more="false"
<breadcrumb :has-more="false"
:previous-url="route('projects.index', { company: $page.props.auth.company.id})"
:previous="$t('app.breadcrumb_project_list')"
>
{{ $t('app.breadcrumb_project_detail') }}
</breadcrumb>
Expand Down
7 changes: 3 additions & 4 deletions resources/js/Pages/Company/Project/Tasks/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ input[type=checkbox] {
<template>
<layout :notifications="notifications">
<div class="ph2 ph5-ns">
<breadcrumb
:root-url="'/' + $page.props.auth.company.id + '/company/projects'"
:root="$t('app.breadcrumb_project_list')"
:has-more="false"
<breadcrumb :has-more="false"
:previous-url="route('projects.index', { company: $page.props.auth.company.id})"
:previous="$t('app.breadcrumb_project_list')"
>
{{ $t('app.breadcrumb_project_detail') }}
</breadcrumb>
Expand Down

0 comments on commit 672bf12

Please sign in to comment.