Skip to content

Commit

Permalink
Switch to log-map everywhere, /log is now log-map
Browse files Browse the repository at this point in the history
log-details is now obsolete
  • Loading branch information
lukarenko committed May 3, 2024
1 parent 0332edc commit 6471056
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/pages/logs-book/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
>
<template #cell(name)="{ value, rowData }">
<template v-if="isLoggedIn">
<router-link class="va-link link" :to="{ name: 'log-details', params: { id: rowData.id } }">
<router-link class="va-link link" :to="{ name: 'log-map', params: { id: rowData.id } }">
{{ value }}
</router-link> </template
><template v-else>
<router-link
class="va-link link"
:to="{ name: 'log-details', params: { boat: publicVessel, id: rowData.id } }"
:to="{ name: 'log-map', params: { boat: publicVessel, id: rowData.id } }"
>
{{ value }}
</router-link>
Expand Down
8 changes: 4 additions & 4 deletions src/pages/stats/Stats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<td>
<router-link
class="va-link link"
:to="{ name: 'log-details', params: { id: stats_logs.max_speed_id } }"
:to="{ name: 'log-map', params: { id: stats_logs.max_speed_id } }"
>
{{ speedFormatKnots(stats_logs.max_speed) }}
</router-link>
Expand All @@ -112,7 +112,7 @@
<td>
<router-link
class="va-link link"
:to="{ name: 'log-details', params: { id: stats_logs.max_wind_speed_id } }"
:to="{ name: 'log-map', params: { id: stats_logs.max_wind_speed_id } }"
>
{{ speedFormatKnots(stats_logs.max_wind_speed) }}
</router-link>
Expand All @@ -123,14 +123,14 @@
<td>
<router-link
class="va-link link"
:to="{ name: 'log-details', params: { id: stats_logs.max_distance_id } }"
:to="{ name: 'log-map', params: { id: stats_logs.max_distance_id } }"
>
{{ distanceFormatMiles(stats_logs.max_distance) }}
</router-link>
/
<router-link
class="va-link link"
:to="{ name: 'log-details', params: { id: stats_logs.max_duration_id } }"
:to="{ name: 'log-map', params: { id: stats_logs.max_duration_id } }"
>
{{ durationFormatHours(stats_logs.max_duration) }}
{{ durationI18nHours(stats_logs.max_duration) }}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/stays/Details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
</dd>
<dt class="flex xs12 md6 pa-2 va-text-bold">{{ $t('stays.stay.arrival') }}</dt>
<dd class="flex xs12 md6 pa-2">
<router-link class="link" :to="{ name: 'log-details', params: { id: item.arrived_log_id } }">
<router-link class="link" :to="{ name: 'log-map', params: { id: item.arrived_log_id } }">
{{ dateFormatUTC(item.arrived) }}
</router-link>
</dd>
Expand All @@ -103,7 +103,7 @@
</dd>
<dt class="flex xs12 md6 pa-2 va-text-bold">{{ $t('stays.stay.departure') }}</dt>
<dd class="flex xs12 md6 pa-2">
<router-link class="link" :to="{ name: 'log-details', params: { id: item.departed_log_id } }">
<router-link class="link" :to="{ name: 'log-map', params: { id: item.departed_log_id } }">
{{ dateFormatUTC(item.departed) }}
</router-link>
</dd>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/stays/Moorage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
class="datatable"
>
<template #cell(arrived)="{ value, rowData }">
<router-link class="va-link link" :to="{ name: 'log-details', params: { id: rowData.arrived_id } }">
<router-link class="va-link link" :to="{ name: 'log-map', params: { id: rowData.arrived_id } }">
{{ dateFormatUTC(value) }}
</router-link>
</template>
<template #cell(departed)="{ value, rowData }">
<router-link class="va-link link" :to="{ name: 'log-details', params: { id: rowData.departed_id } }">
<router-link class="va-link link" :to="{ name: 'log-map', params: { id: rowData.departed_id } }">
{{ dateFormatUTC(value) }}
</router-link>
</template>
Expand Down
14 changes: 7 additions & 7 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,15 @@ const routes: Array<RouteRecordRaw> = [
component: () => import('../pages/logs-book/Page.vue'),
meta: { isPublic: true, type: 'public_logs_list' },
},
{
name: 'log-details',
path: 'log/:id(\\d+)',
component: () => import('../pages/logs-book/Details.vue'),
meta: { isPublic: true, type: 'public_logs' },
},
// {
// name: 'log-details',
// path: 'log/:id(\\d+)',
// component: () => import('../pages/logs-book/Details.vue'),
// meta: { isPublic: true, type: 'public_logs' },
// },
{
name: 'log-map',
path: 'logmap/:id(\\d+)',
path: 'log/:id(\\d+)',
component: () => import('../pages/logs-book/DetailsMap.vue'),
meta: { isPublic: true, type: 'public_logs' },
},
Expand Down

0 comments on commit 6471056

Please sign in to comment.