Skip to content

Commit

Permalink
Merge pull request #295 from harena-lab/development
Browse files Browse the repository at this point in the history
fix (artifacts/comments): small fixes
  • Loading branch information
santanche authored Nov 10, 2021
2 parents e6c7bbf + 10c7463 commit e50d257
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/adonisjs/public/author/js/modifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class Modifier {
if (includeContext) {
this.elementInsert(knot, targetEl,
{type: 'linefeed',
content: '\n\n'})
content: '\n'})
targetEl++
if (includeTitle != null) {
this.elementInsert(knot, targetEl,
Expand Down Expand Up @@ -254,7 +254,7 @@ class Modifier {
let el = content[e]
if (el.type == 'context-open') {
lastContext = el.context
lastContextId = el.contextId
lastContextId = el.id
} else if (el.type == 'context-close') {
if (lastContext == context && contextPos == -1 &&
(contextId == null ||
Expand Down Expand Up @@ -293,7 +293,7 @@ class Modifier {
let formalOpen = {type: 'formal-open',
context: context,
render: false}
if (contextId != null) formalOpen.contextId = contextId
if (contextId != null) formalOpen.id = contextId
this.elementInsert(knot, contextPos+1, formalOpen)
this.elementInsert(knot, contextPos+2,
{type: 'linefeed',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"property": "likert",
"property": "conclusion",
"blocks": [
{
"title": "Comentários",
Expand Down
12 changes: 12 additions & 0 deletions src/adonisjs/public/templates/simple/knot/comments/pt_extra.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"property": "media",
"blocks": [
{
"title": "Comentários",
"type": "text",
"property": "comments",
"placeholder": "Digite seus comentários"
}
],
"contexts": {}
}

0 comments on commit e50d257

Please sign in to comment.