Skip to content

Commit 3547f71

Browse files
committed
fixed sidebar behaviour
1 parent 4e4b811 commit 3547f71

3 files changed

Lines changed: 7 additions & 15 deletions

File tree

src/actions/sharingPopupAction.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,6 @@ export const action = new FileAction({
2121
},
2222

2323
title(nodes) {
24-
/*
25-
const node = nodes[0]
26-
27-
if (Array.isArray(node.attributes?.['share-types'])) {
28-
return t('files_sharing', 'Shared multiple times with different people')
29-
}
30-
*/
3124
return t('files_sharing', 'Show sharing options')
3225
},
3326

src/actions/sharingPopupMenuAction.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ export const action = new FileAction({
88
},
99

1010
title(nodes) {
11-
/*
12-
const node = nodes[0]
13-
14-
if (Array.isArray(node.attributes?.['share-types'])) {
15-
return t('files_sharing', 'Shared multiple times with different people')
16-
}
17-
*/
1811
return t('files_sharing', 'Show sharing options')
1912
},
2013

@@ -52,7 +45,13 @@ export const action = new FileAction({
5245
async exec(node, view, dir) {
5346
// You need read permissions to see the sidebar
5447
if ((node.permissions & Permission.READ) !== 0) {
48+
setTimeout(() => {
49+
const currentUrl = window.location.search
5550

51+
if (currentUrl.includes('popup')) {
52+
document.querySelector('#app-sidebar-vue').style.width = '0%'
53+
}
54+
})
5655
window.OCA.Files.Sidebar.close()
5756

5857
window.OCA.Files.Sidebar.setActiveTab('sharing-manage')

src/views/SharingPopup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export default {
212212
const currentUrl = window.location.search
213213
214214
if (this.newLinkShare || this.shareSent) {
215-
this.openSharingManage()
215+
// this.openSharingManage()
216216
} else {
217217
window.OCA.Files.Sidebar.close()
218218
currentUrl.includes('openfile') ? window.OCA.Files.Sidebar.setFullScreenMode(true) : window.OCA.Files.Sidebar.setFullScreenMode(false)

0 commit comments

Comments
 (0)