Skip to content

Commit 91247fa

Browse files
authored
fix: remove double edit buttons on unit outline (#36770)
1 parent 93b493b commit 91247fa

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

cms/templates/studio_xblock_wrapper.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,12 @@
211211
<span data-tooltip="${_('Drag to reorder')}" class="drag-handle action"></span>
212212
</li>
213213
% endif
214-
% if not show_inline:
215-
<li class="action-item action-edit action-edit-view-only">
216-
<a href="#" class="edit-button action-button">
217-
<span class="action-button-text">${_("Details")}</span>
218-
</a>
219-
</li>
220-
% endif
214+
% elif not show_inline:
215+
<li class="action-item action-edit action-edit-view-only">
216+
<a href="#" class="edit-button action-button">
217+
<span class="action-button-text">${_("Details")}</span>
218+
</a>
219+
</li>
221220
% endif
222221
% endif
223222
</ul>

0 commit comments

Comments
 (0)