Merge pull request #2363 from urbanrotnik/ur-sci-4190

Make less opacity when editing or adding row [SCI-4190]
This commit is contained in:
Urban Rotnik 2020-01-30 13:24:20 +01:00 committed by GitHub
commit 7813d3ab75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -128,6 +128,7 @@ var RepositoryDatatableRowEditor = (function() {
// First two columns are always present and visible
$row.append(rowForm);
$row.addClass('editing');
$row.append($(TABLE_CELL));
$(TABLE.table().node()).find('tbody').prepend($row);
@ -177,6 +178,7 @@ var RepositoryDatatableRowEditor = (function() {
`);
$row.find('td').first().append(rowForm);
$row.addClass('editing');
TABLE.cells(row.index(), row.columns().eq(0)).every(function() {
let $header = $(TABLE.columns(this.index().column).header());

View file

@ -6,6 +6,15 @@
.repository-table {
margin-top: 20px;
&.editing {
tbody>tr {
&:not(.editing) {
opacity: .4;
pointer-events: none;
}
}
}
.dataTables_filter {
float: right;
}