Merge pull request #4361 from aignatov-bio/ai-sci-7084-add-sorting-by-default-template

Add sorting by default label template [SCI-7084]
This commit is contained in:
aignatov-bio 2022-08-31 10:36:02 +02:00 committed by GitHub
commit 57282069e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View file

@ -225,7 +225,7 @@
var $table = $('#label-templates-table');
LABEL_TEMPLATE_TABLE = $table.DataTable({
dom: "R<'label-toolbar'<'label-buttons-container'><'label-search-container'f>>t<'pagination-row hidden'<'pagination-info'li><'pagination-actions'p>>",
order: [[2, 'desc']],
order: [[1, 'asc']],
sScrollX: '100%',
sScrollXInner: '100%',
processing: true,
@ -245,7 +245,7 @@
}, {
targets: 1,
searchable: false,
orderable: false,
orderable: true,
sWidth: '1%',
render: renderDefaultTemplateHTML
}, {

View file

@ -79,6 +79,14 @@
flex-shrink: 0;
}
}
#label-template-selected {
padding-right: 0;
&::after {
display: none;
}
}
}
.label-template-name {

View file

@ -6,7 +6,8 @@ class LabelTemplateDatatable < CustomDatatable
TABLE_COLUMNS = %w(
label_templates.name
label_templates.format
label_templates.default
label_templates.type
label_templates.description
label_templates.modified_by
label_templates.updated_at