mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-29 00:14:41 +08:00
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:
commit
f5b08ffb33
3 changed files with 5 additions and 5 deletions
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue