Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse multiline ingredients and tools into separate fields #379

Conversation

seyfeb
Copy link
Collaborator

@seyfeb seyfeb commented Nov 9, 2020

In the recipe editor, pasting content with newlines in a tools or ingredients field automatically creates new fields.

For textareas (recipe steps) this is not done.

Closes #325.

@seyfeb seyfeb force-pushed the feature/parseMultilineIngredientsIntoSeparateFields branch from f3fa615 to 7a080a6 Compare November 9, 2020 19:54
@seyfeb
Copy link
Collaborator Author

seyfeb commented Nov 9, 2020

Now, this is done for textareas, too.

There are only frontend parts touched by this PR. @sam-19, as the vue.js magician here, could you have a look at this?

CHANGELOG.md Outdated
@@ -48,6 +50,8 @@
[#358](https://github.com/nextcloud/cookbook/pull/358) @christianlupus
- Avoid recipe are no longer reachable when user changes locales
[#371](https://github.com/nextcloud/cookbook/pull/371) @christianlupus
- Creating new recipe not possible due to null reference
[#378](https://github.com/nextcloud/cookbook/pull/378/) @seyfeb
Copy link
Collaborator

@christianlupus christianlupus Nov 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a leftover from another PR...., right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I merged #378 in there to be able to create new recipes at all. I can remove those lines.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, #378 should be merged before. All right.

Copy link
Collaborator

@christianlupus christianlupus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I am no Vus.JS magician, I just looked over the general structure. I will request review by @sam-19.

@sam-19
Copy link
Contributor

sam-19 commented Nov 10, 2020

Apart from the small comment above, it looks good to me!

Signed-off-by: Sebastian Fey <info@sebastianfey.de>
…ntent with newlines is pasted

Works for inputs, not for textarea (yet)

Signed-off-by: Sebastian Fey <info@sebastianfey.de>
…s and ingredients

Signed-off-by: Sebastian Fey <info@sebastianfey.de>
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
@christianlupus christianlupus force-pushed the feature/parseMultilineIngredientsIntoSeparateFields branch from 29b5db9 to fef3e6d Compare November 12, 2020 11:01
@christianlupus christianlupus merged commit 0dda437 into nextcloud:master Nov 12, 2020
@seyfeb seyfeb deleted the feature/parseMultilineIngredientsIntoSeparateFields branch November 16, 2020 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ability to paste multiple ingredients/instructions at once
3 participants