File tree Expand file tree Collapse file tree 2 files changed +24
-20
lines changed
bootstrap4/builderComponent
bootstrap5/builderComponent Expand file tree Collapse file tree 2 files changed +24
-20
lines changed Original file line number Diff line number Diff line change 29
29
>
30
30
<i class =" {{ctx.iconClass('save')}}" ></i >
31
31
</div >
32
- <div
33
- role =" button"
34
- aria-label =" Edit json button. Click to edit json of the current component"
35
- tabindex =" -1"
36
- class =" btn btn-xxs btn-default component-settings-button component-settings-button-edit-json"
37
- ref =" editJson"
38
- >
39
- <i class =" {{ctx.iconClass('wrench')}}" ></i >
40
- </div >
32
+ {% if (ctx.editJson !== false) { %}
33
+ <div
34
+ role =" button"
35
+ aria-label =" Edit json button. Click to edit json of the current component"
36
+ tabindex =" -1"
37
+ class =" btn btn-xxs btn-default component-settings-button component-settings-button-edit-json"
38
+ ref =" editJson"
39
+ >
40
+ <i class =" {{ctx.iconClass('wrench')}}" ></i >
41
+ </div >
42
+ {% } %}
41
43
{% } %}
42
44
<div
43
45
role =" button"
48
50
>
49
51
<i class =" {{ctx.iconClass('move')}}" ></i >
50
52
</div >
51
- {% if (!(ctx.design && ctx.childComponent.type === 'reviewpage')) { %}
53
+ {% if (!(ctx.design && ctx.childComponent.type === 'reviewpage') && ctx.editComponent ) { %}
52
54
<div
53
55
role =" button"
54
56
aria-label =" Edit button. Click to open component settings modal window"
Original file line number Diff line number Diff line change 29
29
>
30
30
<i class =" {{ctx.iconClass('save')}}" ></i >
31
31
</div >
32
- <div
33
- role =" button"
34
- aria-label =" Edit json button. Click to edit json of the current component"
35
- tabindex =" -1"
36
- class =" btn btn-xxs btn-default component-settings-button component-settings-button-edit-json"
37
- ref =" editJson"
38
- >
39
- <i class =" {{ctx.iconClass('wrench')}}" ></i >
40
- </div >
32
+ {% if (ctx.editJson !== false) { %}
33
+ <div
34
+ role =" button"
35
+ aria-label =" Edit json button. Click to edit json of the current component"
36
+ tabindex =" -1"
37
+ class =" btn btn-xxs btn-default component-settings-button component-settings-button-edit-json"
38
+ ref =" editJson"
39
+ >
40
+ <i class =" {{ctx.iconClass('wrench')}}" ></i >
41
+ </div >
42
+ {% } %}
41
43
{% } %}
42
44
<div
43
45
role =" button"
48
50
>
49
51
<i class =" {{ctx.iconClass('move')}}" ></i >
50
52
</div >
51
- {% if (!(ctx.design && ctx.childComponent.type === 'reviewpage')) { %}
53
+ {% if (!(ctx.design && ctx.childComponent.type === 'reviewpage') && ctx.editComponent ) { %}
52
54
<div
53
55
role =" button"
54
56
aria-label =" Edit button. Click to open component settings modal window"
You can’t perform that action at this time.
0 commit comments