mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-03 19:24:48 +08:00
Fix snapshot button place
This commit is contained in:
parent
fe658a9b23
commit
dad5ac7a27
4 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||
|
|
|
@ -17,6 +17,7 @@ var DataTableHelpers = (function() {
|
|||
noEmptyOption: true,
|
||||
singleSelect: true,
|
||||
closeOnSelect: true,
|
||||
disableSearch: true,
|
||||
selectAppearance: 'simple'
|
||||
});
|
||||
},
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -17,21 +17,20 @@
|
|||
</p>
|
||||
</div>
|
||||
|
||||
<div class="repository-snapshots-container">
|
||||
<div class="snapshots-container-scrollbody">
|
||||
<div class="create-snapshot-item">
|
||||
<% if @repository_snapshots.blank? %>
|
||||
<p class="list-group-item-text">
|
||||
<p>
|
||||
<%= 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) %>">
|
||||
<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>
|
||||
|
||||
<div class="repository-snapshots-container">
|
||||
<div class="snapshots-container-scrollbody">
|
||||
<%= render partial: 'my_modules/repositories/full_view_version', collection: @repository_snapshots, as: :repository_snapshot %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue