mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-28 03:06:28 +08:00
Toolbar fixes [SCI-6670] (#3973)
Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
parent
229a27750f
commit
a32dd54a6e
3 changed files with 12 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1848,7 +1848,7 @@ en:
|
|||
active: Show active inventories
|
||||
archived: Show archived inventories
|
||||
buttons:
|
||||
edit: "Edit"
|
||||
edit: "Rename"
|
||||
duplicate: "Duplicate"
|
||||
archive: "Archive"
|
||||
restore: "Restore"
|
||||
|
|
Loading…
Reference in a new issue