mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-10 06:06:24 +08:00
Merge pull request #2410 from mlorb/ml-sci-4309
Hide pencil for shared inventory [SCI-4309]
This commit is contained in:
commit
9f23f11dca
2 changed files with 11 additions and 1 deletions
|
|
@ -443,9 +443,13 @@ var RepositoryDatatable = (function(global) {
|
|||
sWidth: '1%',
|
||||
render: function(data, type, row) {
|
||||
let content = data;
|
||||
let icon = '<i class="repository-row-edit-icon fas fa-pencil-alt"></i>';
|
||||
let icon;
|
||||
if (!row.recordEditable) {
|
||||
icon = `<i class="repository-row-lock-icon fas fa-lock" title="${I18n.t('repositories.table.locked_item')}"></i>`;
|
||||
} else if (EDITABLE) {
|
||||
icon = '<i class="repository-row-edit-icon fas fa-pencil-alt"></i>';
|
||||
} else {
|
||||
icon = '';
|
||||
}
|
||||
content = icon + content;
|
||||
return content;
|
||||
|
|
|
|||
|
|
@ -225,6 +225,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
table[data-editable=false] {
|
||||
.assign-counter-container {
|
||||
margin-left: 30px !important;
|
||||
}
|
||||
}
|
||||
|
||||
&.editing {
|
||||
tbody {
|
||||
tr:hover {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue