recipe step sidebar no name

This commit is contained in:
vabene1111
2020-07-08 21:55:17 +02:00
parent b89c38a696
commit 372dd0afa1

View File

@@ -379,7 +379,10 @@
<i class="fas fa-clock fa-fw" v-if="step.type == 'TIME'"></i>
</div>
<div class="flex-fill" style="padding-left: 4px">
<a href="#" v-scroll-to="'#id_step_' + step_index">[[step.name]]</a>
<a href="#" v-scroll-to="'#id_step_' + step_index">
<template v-if="step.name">[[step.name]]</template>
<template v-else>{% trans 'Step' %} [[step_index + 1]]</template>
</a>
</div>
<div class="handle flex-grow-0 align-content-end">
<i class="fas fa-sort "></i>