File tree 2 files changed +23
-1
lines changed
packages/web-pkg/src/composables/actions/files
2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change
1
+ Bugfix: Extension actions in right sidebar
2
+
3
+ Extension actions (e.g. "Extract here") are now correctly showing in the actions panel of the right sidebar.
4
+
5
+ https://github.com/owncloud/web/pull/11924
6
+ https://github.com/owncloud/web/issues/11898
Original file line number Diff line number Diff line change 1
1
import kebabCase from 'lodash-es/kebabCase'
2
+ import isNil from 'lodash-es/isNil'
2
3
import { isShareSpaceResource } from '@ownclouders/web-client'
3
4
import { routeToContextQuery } from '../../appDefaults'
4
5
import { isLocationTrashActive } from '../../../router'
@@ -98,6 +99,13 @@ export const useFileActions = () => {
98
99
return contextActionExtensions . map ( ( extension ) => extension . action )
99
100
} )
100
101
102
+ const extensionActions = computed ( ( ) => {
103
+ return requestExtensions < ActionExtension > ( {
104
+ id : 'global.files.context-actions' ,
105
+ extensionType : 'action'
106
+ } ) . map ( ( e ) => e . action )
107
+ } )
108
+
101
109
const editorActions = computed ( ( ) => {
102
110
if ( unref ( isEmbedModeEnabled ) ) {
103
111
return [ ]
@@ -260,7 +268,15 @@ export const useFileActions = () => {
260
268
? [ ]
261
269
: unref ( systemActions ) . filter ( filterCallback )
262
270
263
- return [ ...primaryActions , ...secondaryActions ]
271
+ return [
272
+ ...primaryActions ,
273
+ ...secondaryActions ,
274
+ ...unref ( extensionActions ) . filter (
275
+ ( a ) =>
276
+ a . isVisible ( options as FileActionOptions ) &&
277
+ ( a . category === 'actions' || isNil ( a . category ) )
278
+ )
279
+ ]
264
280
}
265
281
266
282
return {
You can’t perform that action at this time.
0 commit comments