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

Fix broken post edit form page #1295

Merged
merged 5 commits into from Dec 8, 2017
Merged

Fix broken post edit form page #1295

merged 5 commits into from Dec 8, 2017

Conversation

taniki
Copy link
Contributor

@taniki taniki commented Dec 8, 2017

No description provided.

Copy link
Contributor

@noirbizarre noirbizarre left a comment

Choose a reason for hiding this comment

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

Ok for the fix but you must revert the form markup/name change


export default {
name: 'post-form',
components: {VerticalForm},
components: {
vform: require('components/form/vertical-form.vue')
Copy link
Contributor

Choose a reason for hiding this comment

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

As much as possible we avoid inline require

@@ -1,16 +1,17 @@
<template>
<div>
<vertical-form v-ref:form :fields="fields" :model="post"></vertical-form>
<vform v-ref:form :fields="fields" :model="post"></vform>
Copy link
Contributor

Choose a reason for hiding this comment

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

We are doing the opposite, ie. transform vfrom/hform into vertical-form horizontal-form for the following reason:

  • this is more explicit
  • web component spec prohibe single term markup (you need a dash in a web component markup)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

argh. I was overzealous at getting a homogeneous code from the wrong example.

@taniki
Copy link
Contributor Author

taniki commented Dec 8, 2017

@noirbizarre revert done

@taniki taniki merged commit 2424d26 into opendatateam:master Dec 8, 2017
@noirbizarre
Copy link
Contributor

👌

@noirbizarre noirbizarre added this to the 1.2.5 milestone Dec 12, 2017
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.

None yet

2 participants