Skip to content

Commit 4128420

Browse files
committed
fix(stable32): replace getSidebar() with OCA.Files.Sidebar in showStatusInlineAction
getSidebar() is a @nextcloud/files v4-only API, not available in v3.12.x. Replace sidebar open/setActiveTab calls with the NC32-compatible OCA.Files.Sidebar global, passing node.path string. Signed-off-by: Vitor Mattos <[email protected]>
1 parent c56ce82 commit 4128420

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/actions/showStatusInlineAction.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
5-
import { registerFileAction, getSidebar } from '@nextcloud/files'
5+
import { registerFileAction } from '@nextcloud/files'
66
import { loadState } from '@nextcloud/initial-state'
77
import { t } from '@nextcloud/l10n'
88

@@ -26,11 +26,10 @@ const action = {
2626
return t('libresign', 'original file')
2727
},
2828
exec: async ({ nodes }) => {
29-
const sidebar = getSidebar()
3029
const node = nodes?.[0]
3130
if (!node) return null
32-
sidebar.open(node, 'libresign')
33-
sidebar.setActiveTab('libresign')
31+
window.OCA.Files.Sidebar.open(node.path)
32+
window.OCA.Files.Sidebar.setActiveTab('libresign')
3433
return null
3534
},
3635
iconSvgInline: ({ nodes }) => {

0 commit comments

Comments
 (0)