Commit 8cb30d6
committed
refactor: use getSidebar() API in file upload handler
Update init.js file upload handler to use @nextcloud/files v4 sidebar API:
- Import getSidebar() from @nextcloud/files
- Replace window.OCA.Files.Sidebar with getSidebar() proxy
- Use sidebar.setActiveTab() to activate LibreSign tab after upload
- Add proper availability checks and error logging
Signed-off-by: Vitor Mattos <[email protected]>1 parent 48ef27a commit 8cb30d6
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments