You've already forked AstralRinth
forked from didirus/AstralRinth
fix titles being off when plan stage is absent (#4355)
This commit is contained in:
@@ -297,13 +297,13 @@ function goToBreadcrumbStep(id: string) {
|
|||||||
<NewModal ref="modal" @hide="$emit('hide')">
|
<NewModal ref="modal" @hide="$emit('hide')">
|
||||||
<template #title>
|
<template #title>
|
||||||
<div class="flex items-center gap-1 font-bold text-secondary">
|
<div class="flex items-center gap-1 font-bold text-secondary">
|
||||||
<template v-for="(title, id, index) in titles" :key="id">
|
<template v-for="(step, index) in steps" :key="step">
|
||||||
<button
|
<button
|
||||||
v-if="index < currentStepIndex"
|
v-if="index < currentStepIndex"
|
||||||
class="bg-transparent active:scale-95 font-bold text-secondary p-0"
|
class="bg-transparent active:scale-95 font-bold text-secondary p-0"
|
||||||
@click="goToBreadcrumbStep(id as string)"
|
@click="goToBreadcrumbStep(step)"
|
||||||
>
|
>
|
||||||
{{ formatMessage(title) }}
|
{{ formatMessage(titles[step]) }}
|
||||||
</button>
|
</button>
|
||||||
<span
|
<span
|
||||||
v-else
|
v-else
|
||||||
@@ -311,7 +311,7 @@ function goToBreadcrumbStep(id: string) {
|
|||||||
'text-contrast': index === currentStepIndex,
|
'text-contrast': index === currentStepIndex,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
{{ formatMessage(title) }}
|
{{ formatMessage(titles[step]) }}
|
||||||
</span>
|
</span>
|
||||||
<ChevronRightIcon
|
<ChevronRightIcon
|
||||||
v-if="index < steps.length - 1"
|
v-if="index < steps.length - 1"
|
||||||
|
|||||||
Reference in New Issue
Block a user