Skip to content

Commit

Permalink
Format FormButton.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarpsvo committed Oct 23, 2019
1 parent cdda217 commit c9f2da1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions resources/draft-button/components/FormButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ export default {
mounted() {
if (!this.field.isDraft) {
const positionDraftButton = this.actionButton.parentNode.querySelector('[id=create-draft-button]');
if (positionDraftButton && positionDraftButton !== this.$refs.createDraftButton) {
this.actionButton.parentNode.removeChild(positionDraftButton);
}
this.actionButton.parentNode.append(this.$refs.createDraftButton);
const positionDraftButton = this.actionButton.parentNode.querySelector('[id=create-draft-button]');
if (positionDraftButton && positionDraftButton !== this.$refs.createDraftButton) {
this.actionButton.parentNode.removeChild(positionDraftButton);
}
this.actionButton.parentNode.append(this.$refs.createDraftButton);
}
},
Expand Down

0 comments on commit c9f2da1

Please sign in to comment.