mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
Fix office creation on results [SCI-9260]
This commit is contained in:
parent
ef3c916c00
commit
d6ab6e15f8
|
@ -304,7 +304,7 @@ class WopiController < ActionController::Base
|
|||
@can_read = can_read_experiment?(@my_module.experiment)
|
||||
@can_write = can_manage_my_module?(@my_module)
|
||||
|
||||
@close_url = results_my_module_url(@my_module, only_path: false, host: ENV['WOPI_USER_HOST'])
|
||||
@close_url = my_module_results_url(@my_module, only_path: false, host: ENV['WOPI_USER_HOST'])
|
||||
|
||||
@breadcrumb_brand_name = @my_module.experiment.project.name
|
||||
@breadcrumb_brand_url = project_url(@my_module.experiment.project,
|
||||
|
|
|
@ -481,10 +481,6 @@
|
|||
})
|
||||
});
|
||||
},
|
||||
addAttachment(attachment) {
|
||||
this.attachments.push(attachment);
|
||||
this.showFileModal = false;
|
||||
},
|
||||
openCommentsSidebar() {
|
||||
$('.comments-sidebar .close-btn').click();
|
||||
this.showCommentsSidebar = true
|
||||
|
|
|
@ -46,6 +46,10 @@ export default {
|
|||
}
|
||||
});
|
||||
},
|
||||
addAttachment(attachment) {
|
||||
this.attachments.push(attachment);
|
||||
this.showFileModal = false;
|
||||
},
|
||||
uploadFiles(files) {
|
||||
const filesToUploadCntr = files.length;
|
||||
let filesUploadedCntr = 0;
|
||||
|
|
Loading…
Reference in a new issue