Replace checkmark with strikethrough for recipe ingredients

Signed-off-by: Johannes Roth <git@jrcloud.de>
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Christian Wolf 2023-12-03 21:42:11 +01:00
Родитель 0f30c968cd
Коммит 78c985c71d
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -15,6 +15,8 @@
[#1866](https://github.com/nextcloud/cookbook/pull/1866) @seyfeb
- Allow editing existing recipe as new (see [1867](https://github.com/nextcloud/cookbook/issues/1867))
[#1866](https://github.com/nextcloud/cookbook/pull/1866) @seyfeb
- Replace checkmark with strikethrough for recipe ingredients
[#1908](https://github.com/nextcloud/cookbook/pull/1908) @j0hannesr0th
### Fixed
- Fix translation string to not contain quotes

Просмотреть файл

@ -7,7 +7,7 @@
@click="toggleDone"
>
<div class="ingredient">
<VueShowdown :markdown="formattedIngredient" flavor="github"/>
<VueShowdown :markdown="formattedIngredient" flavor="github" />
</div>
<span v-if="!ingredientHasCorrectSyntax" class="icon-error" />
</li>
@ -54,7 +54,7 @@ const displayIngredient = computed(() => {
});
const formattedIngredient = computed(() =>
this.isDone ? `~~${this.displayIngredient}~~` : `**${this.displayIngredient}**`;
this.isDone ? `~~${this.displayIngredient}~~` : `**${this.displayIngredient}**`
);
</script>