Improve ingredient sections behavior (#1233)

This commit is contained in:
Miroito
2022-05-16 01:30:18 +02:00
committed by GitHub
parent 4fe19b88ca
commit 3125730702

View File

@@ -163,13 +163,10 @@ export default defineComponent({
});
function toggleTitle() {
if (value.title) {
state.showTitle = false;
if (state.showTitle) {
value.title = "";
} else {
state.showTitle = true;
value.title = "Section Title";
}
state.showTitle = !state.showTitle
}
function toggleOriginalText() {