Skip to content

Commit

Permalink
code preview의 yaml 코드 필터 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
SoonYoung Oh committed Nov 9, 2020
1 parent 57b2583 commit d33c7ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/designer/k8s-modeling/KubeModelingDesigner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@
var yaml = ''
me.value.definition.forEach(function (item) {
yaml += json2yaml.stringify(item.object)
yaml += '--- \n' + me.yamlFilter(json2yaml.stringify(item.object))
})
var codeValue = {
Expand Down Expand Up @@ -1190,7 +1190,7 @@
var codeValue = {
'key': item.elementView.id,
'name': name + '.yaml',
'code': json2yaml.stringify(item.object),
'code': '--- \n' + me.yamlFilter(json2yaml.stringify(item.object)),
'file': me.fileType('.yaml')
}
Expand Down

0 comments on commit d33c7ea

Please sign in to comment.