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