Fix snapshot button place

This commit is contained in:
aignatov-bio 2020-05-07 19:36:30 +02:00
parent fe658a9b23
commit dad5ac7a27
4 changed files with 15 additions and 15 deletions

View file

@ -298,7 +298,7 @@ var MyModuleRepositories = (function() {
dataType: 'json',
success: function(data) {
let snapshotItem = $(data.html);
FULL_VIEW_MODAL.find('.repository-versions-list').append(snapshotItem);
FULL_VIEW_MODAL.find('.snapshots-container-scrollbody').append(snapshotItem);
setTimeout(function() {
checkSnapshotStatus(snapshotItem);
}, STATUS_POLLING_INTERVAL);

View file

@ -17,6 +17,7 @@ var DataTableHelpers = (function() {
noEmptyOption: true,
singleSelect: true,
closeOnSelect: true,
disableSearch: true,
selectAppearance: 'simple'
});
},

View file

@ -340,7 +340,7 @@
.repository-versions-list {
display: grid;
grid-template-rows: 60px 60px calc(100% - 120px);
grid-template-rows: 60px calc(100% - 60px);
height: calc(100% - 55px);
margin-bottom: 0;

View file

@ -17,21 +17,20 @@
</p>
</div>
<div class="create-snapshot-item">
<% if @repository_snapshots.blank? %>
<p class="list-group-item-text">
<%= t('my_modules.repository.snapshots.full_view.no_snapshots_label') %>
</p>
<% end %>
<button id="createRepositorySnapshotButton" class="btn btn-default" data-action-path="<%= my_module_repository_snapshots_path(@my_module, @repository) %>">
<i class="fas fa-camera"></i>
<%= t('my_modules.repository.snapshots.full_view.create_button') %>
</button>
</div>
<div class="repository-snapshots-container">
<div class="snapshots-container-scrollbody">
<div class="create-snapshot-item">
<% if @repository_snapshots.blank? %>
<p>
<%= t('my_modules.repository.snapshots.full_view.no_snapshots_label') %>
</p>
<% end %>
<button id="createRepositorySnapshotButton" class="btn btn-secondary" data-action-path="<%= my_module_repository_snapshots_path(@my_module, @repository) %>">
<i class="fas fa-camera"></i>
<%= t('my_modules.repository.snapshots.full_view.create_button') %>
</button>
</div>
<%= render partial: 'my_modules/repositories/full_view_version', collection: @repository_snapshots, as: :repository_snapshot %>
</div>
</div>