Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions src/templates/bootstrap4/builderComponent/form.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@
>
<i class="{{ctx.iconClass('save')}}"></i>
</div>
<div
role="button"
aria-label="Edit json button. Click to edit json of the current component"
tabindex="-1"
class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json"
ref="editJson"
>
<i class="{{ctx.iconClass('wrench')}}"></i>
</div>
{% if (ctx.editJson !== false) { %}
<div
role="button"
aria-label="Edit json button. Click to edit json of the current component"
tabindex="-1"
class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json"
ref="editJson"
>
<i class="{{ctx.iconClass('wrench')}}"></i>
</div>
{% } %}
{% } %}
<div
role="button"
Expand All @@ -48,7 +50,7 @@
>
<i class="{{ctx.iconClass('move')}}"></i>
</div>
{% if (!(ctx.design && ctx.childComponent.type === 'reviewpage')) { %}
{% if (!(ctx.design && ctx.childComponent.type === 'reviewpage') && ctx.editComponent) { %}
<div
role="button"
aria-label="Edit button. Click to open component settings modal window"
Expand Down
22 changes: 12 additions & 10 deletions src/templates/bootstrap5/builderComponent/form.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,17 @@
>
<i class="{{ctx.iconClass('save')}}"></i>
</div>
<div
role="button"
aria-label="Edit json button. Click to edit json of the current component"
tabindex="-1"
class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json"
ref="editJson"
>
<i class="{{ctx.iconClass('wrench')}}"></i>
</div>
{% if (ctx.editJson !== false) { %}
<div
role="button"
aria-label="Edit json button. Click to edit json of the current component"
tabindex="-1"
class="btn btn-xxs btn-default component-settings-button component-settings-button-edit-json"
ref="editJson"
>
<i class="{{ctx.iconClass('wrench')}}"></i>
</div>
{% } %}
{% } %}
<div
role="button"
Expand All @@ -48,7 +50,7 @@
>
<i class="{{ctx.iconClass('move')}}"></i>
</div>
{% if (!(ctx.design && ctx.childComponent.type === 'reviewpage')) { %}
{% if (!(ctx.design && ctx.childComponent.type === 'reviewpage') && ctx.editComponent) { %}
<div
role="button"
aria-label="Edit button. Click to open component settings modal window"
Expand Down