diff --git a/Packages/ohif-core/client/components/base/section/section.js b/Packages/ohif-core/client/components/base/section/section.js index 1712983ba..b8f86af0f 100644 --- a/Packages/ohif-core/client/components/base/section/section.js +++ b/Packages/ohif-core/client/components/base/section/section.js @@ -55,3 +55,7 @@ Template.section.onCreated(() => { }); } }); + +Template.registerHelper('hasSection', sectionName => { + return !!OHIF.blaze.getSectionContent(Template.instance().view, sectionName); +}); diff --git a/Packages/ohif-core/client/components/bootstrap/dialog/form.html b/Packages/ohif-core/client/components/bootstrap/dialog/form.html index 40b039fd6..06d6715de 100644 --- a/Packages/ohif-core/client/components/bootstrap/dialog/form.html +++ b/Packages/ohif-core/client/components/bootstrap/dialog/form.html @@ -4,9 +4,23 @@ {{#form class=(concat 'modal-content ' this.formClass) hideValidationBox=true api=(extend instance.api instance.data.api) schema=this.schema }} - {{>dialogHeader this}} + {{#if or this.title (hasSection 'dialogHeader')}} + {{>dialogHeader this}} + {{/if}}