mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 09:23:58 +08:00
Merge pull request #7794 from artoscinote/ma_SCI_10975
Fix stock field in item card for disabled stock management [SCI-10975]
This commit is contained in:
commit
ce4f79e645
2 changed files with 3 additions and 1 deletions
|
@ -89,6 +89,8 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
enableEditing() {
|
||||
if (!this.values.stock_url) return;
|
||||
|
||||
this.isEditing = true;
|
||||
const $this = this;
|
||||
// disable edit
|
||||
|
|
|
@ -24,7 +24,7 @@ json.actions do
|
|||
end
|
||||
end
|
||||
json.direct_file_upload_path rails_direct_uploads_url
|
||||
if @repository_row.has_stock?
|
||||
if @repository_row.has_stock? && @repository.has_stock_management?
|
||||
json.stock_value_url edit_repository_stock_repository_repository_row_url(@repository, @repository_row)
|
||||
elsif @repository.has_stock_management?
|
||||
json.stock_value_url new_repository_stock_repository_repository_row_url(@repository, @repository_row)
|
||||
|
|
Loading…
Reference in a new issue