mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Merge pull request #56138 from nextcloud/bugfix/fix-richdocuments-3815-master
This commit is contained in:
commit
0da54d3b59
7 changed files with 12 additions and 12 deletions
|
|
@ -43,15 +43,15 @@ export const action = new FileAction({
|
|||
async exec(node: Node, view: View, dir: string) {
|
||||
try {
|
||||
// If the sidebar is already open for the current file, do nothing
|
||||
if (window.OCA.Files.Sidebar.file === node.path) {
|
||||
if (window.OCA.Files?.Sidebar?.file === node.path) {
|
||||
logger.debug('Sidebar already open for this file', { node })
|
||||
return null
|
||||
}
|
||||
// Open sidebar and set active tab to sharing by default
|
||||
window.OCA.Files.Sidebar.setActiveTab('sharing')
|
||||
window.OCA.Files?.Sidebar?.setActiveTab('sharing')
|
||||
|
||||
// TODO: migrate Sidebar to use a Node instead
|
||||
await window.OCA.Files.Sidebar.open(node.path)
|
||||
await window.OCA.Files?.Sidebar?.open(node.path)
|
||||
|
||||
// Silently update current fileid
|
||||
window.OCP?.Files?.Router?.goToRoute(
|
||||
|
|
|
|||
4
dist/files-init.js
vendored
4
dist/files-init.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-init.js.map
vendored
2
dist/files-init.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/files_sharing-init.js
vendored
4
dist/files_sharing-init.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-init.js.map
vendored
2
dist/files_sharing-init.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue