Fix office creation on results [SCI-9260]

This commit is contained in:
Anton 2023-09-13 14:30:00 +02:00
parent ef3c916c00
commit d6ab6e15f8
3 changed files with 5 additions and 5 deletions

View file

@ -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,

View file

@ -481,10 +481,6 @@
})
});
},
addAttachment(attachment) {
this.attachments.push(attachment);
this.showFileModal = false;
},
openCommentsSidebar() {
$('.comments-sidebar .close-btn').click();
this.showCommentsSidebar = true

View file

@ -46,6 +46,10 @@ export default {
}
});
},
addAttachment(attachment) {
this.attachments.push(attachment);
this.showFileModal = false;
},
uploadFiles(files) {
const filesToUploadCntr = files.length;
let filesUploadedCntr = 0;