This commit is contained in:
aignatov-bio 2020-04-14 13:08:07 +02:00
parent 15b291347b
commit 338f3a0192
5 changed files with 7 additions and 32 deletions

View file

@ -167,6 +167,8 @@ var MyModuleRepositories = (function() {
renderFullViewTable(fullViewModal.find('.table'));
});
e.stopPropagation();
});
}
function initRepositoriesDropdown() {
$('.repositories-assign-container').on('show.bs.dropdown', function() {

View file

@ -187,29 +187,6 @@
}
}
.repositories-dropdown-menu {
border: 1px solid $color-gainsboro;
border-top: 0;
box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .05);
height: auto;
max-height: 400px;
overflow-x: hidden;
text-transform: initial;
width: 300px;
li:not(:first-child) {
border-top: 1px solid $color-gainsboro;
}
.fas-custom {
float: right;
}
a.muted {
opacity: .7;
}
}
.repository-share-status {
display: contents !important;

View file

@ -1899,10 +1899,6 @@ th.custom-field .modal-tooltiptext {
background-color: $color-alto;
}
.my_module-state-buttons {
padding-top: 6px;
}
.parse-records-table {
max-height: 200px;
}

View file

@ -11,7 +11,7 @@
<span class="task-section-title">
<h2><%= t('my_modules.details.title') %></h2>
</span>
<div class="complete-button-container">
<div class="actions-block">
<%= render partial: "my_modules/state_buttons.html.erb" %>
</div>
</div>
@ -51,8 +51,8 @@
<span><%= t('my_modules.assigned_items.assign_from') %></span>
<span class="caret pull-right"></span>
</a>
<div class="dropdown-menu repositories-dropdown-menu" aria-labelledby="repositories-assign-button">
</div>
<ul class="dropdown-menu repositories-dropdown-menu" aria-labelledby="repositories-assign-button">
</ul>
</div>
</div>
</div>

View file

@ -1,6 +1,6 @@
<% @repositories.each do |repository| %>
<% assigned_items_count = @my_module.repository_rows_count(repository) %>
<div class="repository">
<li class="repository">
<% if repository.shared_with?(current_team) %>
<span class="shared-icon">
<i class="fas fa-users"></i>
@ -13,5 +13,5 @@
<%= assigned_items_count %>
</span>
<% end %>
</div>
</li>
<% end %>