Toolbar fixes [SCI-6670] (#3973)

Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
aignatov-bio 2022-03-31 14:04:00 +02:00 committed by GitHub
parent 229a27750f
commit a32dd54a6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 2 deletions

View file

@ -55,6 +55,11 @@ var RepositoryDatatable = (function(global) {
$('th').removeClass('disable-click');
$('.repository-row-selector').prop('disabled', false);
$('.dataTables_filter input').prop('disabled', false);
$('#addRepositoryRecord').show();
if (!$('#saveRepositoryFilters').hasClass('hidden')) {
$('#saveRepositoryFilters').show();
}
$('#hideRepositoryReminders').show();
$('#importRecordsButton').show();
if (rowsSelected.length === 0) {
$('#exportRepositoriesButton').addClass('disabled');
@ -89,6 +94,11 @@ var RepositoryDatatable = (function(global) {
$(TABLE_WRAPPER_ID).addClass('editing');
$('#importRecordsButton').hide();
$('#editDeleteCopy').hide();
$('#addRepositoryRecord').hide();
$('#hideRepositoryReminders').hide();
if (!$('#saveRepositoryFilters').hasClass('hidden')) {
$('#saveRepositoryFilters').hide();
}
$('#saveCancel').show();
$('.manage-repo-column-index').prop('disabled', true);
$('#repository-acitons-dropdown').prop('disabled', true);

View file

@ -46,12 +46,12 @@
<!-- RIGHT TOOLBAR BLOCK -->
<div class="toolbar-right-block">
<div class="toolbar-search"></div>
<div class="toolbar-filters"></div>
<% if @repository.is_a?(BmtRepository) %>
<div class="toolbar-bmt-filters">
<%= render partial: 'repositories/toolbar/bmt' %>
</div>
<% end %>
<div class="toolbar-search"></div>
</div>
</template>

View file

@ -1848,7 +1848,7 @@ en:
active: Show active inventories
archived: Show archived inventories
buttons:
edit: "Edit"
edit: "Rename"
duplicate: "Duplicate"
archive: "Archive"
restore: "Restore"