Merge pull request #6212 from aignatov-bio/ai-sci-9260-fix-new-office-in-results

Fix office creation on results [SCI-9260]
This commit is contained in:
aignatov-bio 2023-09-13 14:36:23 +02:00 committed by GitHub
commit f5b08ffb33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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_read = can_read_experiment?(@my_module.experiment)
@can_write = can_manage_my_module?(@my_module) @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_name = @my_module.experiment.project.name
@breadcrumb_brand_url = project_url(@my_module.experiment.project, @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() { openCommentsSidebar() {
$('.comments-sidebar .close-btn').click(); $('.comments-sidebar .close-btn').click();
this.showCommentsSidebar = true this.showCommentsSidebar = true

View file

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