|
|
|
@ -12,6 +12,7 @@ import axios from '@nextcloud/axios' |
|
|
|
|
import LaptopSvg from '@mdi/svg/svg/laptop.svg?raw' |
|
|
|
|
import IconCancel from '@mdi/svg/svg/cancel.svg?raw' |
|
|
|
|
import IconCheck from '@mdi/svg/svg/check.svg?raw' |
|
|
|
|
import { isPublicShare } from '@nextcloud/sharing/public' |
|
|
|
|
|
|
|
|
|
const confirmLocalEditDialog = ( |
|
|
|
|
localEditCallback: (openingLocally: boolean) => void = () => {}, |
|
|
|
@ -90,6 +91,11 @@ export const action = new FileAction({ |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// does not work with shares
|
|
|
|
|
if (isPublicShare()) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return (nodes[0].permissions & Permission.UPDATE) !== 0 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|