File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/web-pkg/src/composables/actions/files Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ import { FileAction } from '../types'
4
4
import { useClipboard } from '../../clipboard'
5
5
import { useMessages } from '../../piniaStores'
6
6
import { isPublicSpaceResource } from '@ownclouders/web-client'
7
+ import { useRouter } from '../../router'
8
+ import { isLocationTrashActive } from '../../../router'
7
9
8
10
export const useFileActionsCopyPermanentLink = ( ) => {
11
+ const router = useRouter ( )
9
12
const { showMessage, showErrorMessage } = useMessages ( )
10
13
const { $gettext } = useGettext ( )
11
14
const { copyToClipboard } = useClipboard ( )
@@ -37,6 +40,9 @@ export const useFileActionsCopyPermanentLink = () => {
37
40
if ( isPublicSpaceResource ( space ) ) {
38
41
return false
39
42
}
43
+ if ( isLocationTrashActive ( router , 'files-trash-generic' ) ) {
44
+ return false
45
+ }
40
46
return resources . length === 1
41
47
} ,
42
48
class : 'oc-files-actions-copy-permanent-link-trigger'
You can’t perform that action at this time.
0 commit comments