mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-25 05:27:33 +08:00
Merge pull request #4174 from aignatov-bio/ai-sci-6759-load-save-protocol-from-repository
Fix load/save protocol to repository [SCI-6759]
This commit is contained in:
commit
5b37a96e79
3 changed files with 1 additions and 5 deletions
|
|
@ -105,7 +105,6 @@ export default {
|
|||
mounted() {
|
||||
// Legacy global functions from app/assets/javascripts/my_modules/protocols.js
|
||||
initLoadFromRepository();
|
||||
initCopyToRepository();
|
||||
initImport();
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -616,6 +616,7 @@ class Protocol < ApplicationRecord
|
|||
|
||||
# Lastly, update the metadata
|
||||
reload
|
||||
self.name = source.name
|
||||
self.record_timestamps = false
|
||||
self.updated_at = source.updated_at
|
||||
self.parent = source
|
||||
|
|
|
|||
|
|
@ -33,10 +33,6 @@
|
|||
<span class="fas fa-plus"></span>
|
||||
<span class="hidden-xs"> <%= t("protocols.index.create_new") %></span>
|
||||
<% end %>
|
||||
<button class="btn btn-light disabled hidden" data-action="edit">
|
||||
<span class="fas fa-pencil-alt"></span>
|
||||
<span class="hidden-xs"> <%= t("protocols.index.edit") %></span>
|
||||
</button>
|
||||
<button class="btn btn-light disabled hidden" data-action="clone">
|
||||
<span class="fas fa-copy"></span>
|
||||
<span class="hidden-xs"> <%= t("protocols.index.clone_btn") %></span>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue