mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-29 07:26:28 +08:00
Fix gene sequence html compiling with deface [SCI-9032]
This commit is contained in:
parent
40a82f67c0
commit
b9fe7c3d3e
2 changed files with 7 additions and 5 deletions
|
|
@ -39,18 +39,20 @@
|
||||||
fileUrl: { type: String },
|
fileUrl: { type: String },
|
||||||
fileName: { type: String },
|
fileName: { type: String },
|
||||||
updateUrl: { type: String },
|
updateUrl: { type: String },
|
||||||
canEditFile: { type: Boolean, default: false },
|
canEditFile: { type: String },
|
||||||
oveEnabledDaysLeft: { type: Number }
|
oveEnabledDaysLeftString: { type: String }
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
editor: null,
|
editor: null,
|
||||||
sequenceName: null,
|
sequenceName: null,
|
||||||
closeAfterSave: false,
|
closeAfterSave: false,
|
||||||
readOnly: !this.canEditFile
|
readOnly: this.canEditFile !== 'true',
|
||||||
|
oveEnabledDaysLeft: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.oveEnabledDaysLeft = parseInt(this.oveEnabledDaysLeftString);
|
||||||
let editorConfig = {
|
let editorConfig = {
|
||||||
onSave: this.saveFile,
|
onSave: this.saveFile,
|
||||||
generatePng: true,
|
generatePng: true,
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@
|
||||||
file-url="<%= @file_url %>"
|
file-url="<%= @file_url %>"
|
||||||
file-name="<%= @file_name %>"
|
file-name="<%= @file_name %>"
|
||||||
update-url="<%= @asset ? gene_sequence_asset_url(@asset) : gene_sequence_assets_url(parent_type: params[:parent_type], parent_id: params[:parent_id]) %>"
|
update-url="<%= @asset ? gene_sequence_asset_url(@asset) : gene_sequence_assets_url(parent_type: params[:parent_type], parent_id: params[:parent_id]) %>"
|
||||||
:can-edit-file="<%= asset_managable? %>"
|
can-edit-file="<%= asset_managable? %>"
|
||||||
:ove-enabled-days-left="<%= OpenVectorEditorService.evaluation_period_left %>"
|
ove-enabled-days-left-string="<%= OpenVectorEditorService.evaluation_period_left %>"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<%= javascript_include_tag 'open_vector_editor' %>
|
<%= javascript_include_tag 'open_vector_editor' %>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue