mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Merge pull request #7682 from rekonder/aj_SCI_10839
Add disabled stock option on manage inventory columns [SCI-10839]
This commit is contained in:
commit
0289f44828
2 changed files with 9 additions and 1 deletions
|
@ -185,7 +185,7 @@ var RepositoryColumns = (function() {
|
|||
disableSearch: true,
|
||||
labelHTML: true,
|
||||
optionLabel: function(option) {
|
||||
return `<div class="column-type-option" data-disabled="${option.params.disabled}">
|
||||
return `<div class="column-type-option" data-e2e="${option.params.data_e2e || ''}" data-disabled="${option.params.disabled}">
|
||||
<span>${option.label}</span>
|
||||
<span class="text-description">${option.params.text_description || ''}</span>
|
||||
</div>`
|
||||
|
|
|
@ -98,6 +98,14 @@
|
|||
selected>
|
||||
<%= t('libraries.manange_modal_column.select.repository_stock_value') %>
|
||||
</option>
|
||||
<% elsif !RepositoryBase.stock_management_enabled? %>
|
||||
<option value="RepositoryStockValue" class="disabled-option"
|
||||
data-params="<%= {
|
||||
optionClass: 'disabled-option',
|
||||
data_e2e: 'e2e-LB-invItems-manageColumnsModal-stock-dec_clm-disabled'
|
||||
}.to_json %>">
|
||||
<%= t('libraries.manange_modal_column.select.repository_stock_value') %>
|
||||
</option>
|
||||
<% end %>
|
||||
<option data-delimiter=true></option>
|
||||
|
||||
|
|
Loading…
Reference in a new issue