restrict move action
This commit is contained in:
@@ -18,11 +18,7 @@
|
||||
var xblock = xblocks[i];
|
||||
%>
|
||||
<li class="xblock-item" data-item-index="<%- i %>">
|
||||
<% if (XBlocksCategory === 'component') { %>
|
||||
<span class="xblock-displayname component truncate">
|
||||
<%- xblock.get('display_name') %>
|
||||
</span>
|
||||
<% } else { %>
|
||||
<% if (sourceXBlockId !== xblock.id && (xblock.get('child_info') || XBlocksCategory !== 'component')) { %>
|
||||
<button class="button-forward" >
|
||||
<span class="xblock-displayname truncate">
|
||||
<%- xblock.get('display_name') %>
|
||||
@@ -33,8 +29,19 @@
|
||||
</span>
|
||||
<% } %>
|
||||
<span class="icon fa fa-arrow-right forward-sr-icon" aria-hidden="true"></span>
|
||||
<span class="sr forward-sr-text"><%- gettext("Click for children") %></span>
|
||||
<span class="sr forward-sr-text"><%- gettext("View child items") %></span>
|
||||
</button>
|
||||
<% } else { %>
|
||||
<span class="component">
|
||||
<span class="xblock-displayname truncate">
|
||||
<%- xblock.get('display_name') %>
|
||||
</span>
|
||||
<% if(currentLocationIndex === i) { %>
|
||||
<span class="current-location">
|
||||
(<%- gettext('Currently selected') %>)
|
||||
</span>
|
||||
<% } %>
|
||||
</span>
|
||||
<% } %>
|
||||
</li>
|
||||
<% } %>
|
||||
|
||||
@@ -89,7 +89,8 @@ messages = xblock.validate().to_json()
|
||||
<span class="sr">${_("Duplicate")}</span>
|
||||
</button>
|
||||
</li>
|
||||
|
||||
% endif
|
||||
% if can_move:
|
||||
<li class="action-item action-move">
|
||||
<button data-tooltip="${_("Move")}" class="btn-default move-button action-button">
|
||||
<span class="stack-move-icon fa-stack fa-lg ">
|
||||
|
||||
Reference in New Issue
Block a user