mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-30 07:58:28 +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() {
|
mounted() {
|
||||||
// Legacy global functions from app/assets/javascripts/my_modules/protocols.js
|
// Legacy global functions from app/assets/javascripts/my_modules/protocols.js
|
||||||
initLoadFromRepository();
|
initLoadFromRepository();
|
||||||
initCopyToRepository();
|
|
||||||
initImport();
|
initImport();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -616,6 +616,7 @@ class Protocol < ApplicationRecord
|
||||||
|
|
||||||
# Lastly, update the metadata
|
# Lastly, update the metadata
|
||||||
reload
|
reload
|
||||||
|
self.name = source.name
|
||||||
self.record_timestamps = false
|
self.record_timestamps = false
|
||||||
self.updated_at = source.updated_at
|
self.updated_at = source.updated_at
|
||||||
self.parent = source
|
self.parent = source
|
||||||
|
|
|
||||||
|
|
@ -33,10 +33,6 @@
|
||||||
<span class="fas fa-plus"></span>
|
<span class="fas fa-plus"></span>
|
||||||
<span class="hidden-xs"> <%= t("protocols.index.create_new") %></span>
|
<span class="hidden-xs"> <%= t("protocols.index.create_new") %></span>
|
||||||
<% end %>
|
<% 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">
|
<button class="btn btn-light disabled hidden" data-action="clone">
|
||||||
<span class="fas fa-copy"></span>
|
<span class="fas fa-copy"></span>
|
||||||
<span class="hidden-xs"> <%= t("protocols.index.clone_btn") %></span>
|
<span class="hidden-xs"> <%= t("protocols.index.clone_btn") %></span>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue