File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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' )
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments