Closed dominicbrunner closed 4 months ago
Hi Dominic 👋🏼 Do you have a valid SSL-certificate and a https connection? Otherwise the clipboard API is disabled and we hide the buttons.
In case of a local instance use 127.0.0.1 - this enables the clipboard api via http.
I’m thinking of changing this behaviour and displaying a disabled button instead but not 100% sure yet. Would be a better experience for admins but displaying a non-working functionality for users. But as it shouldn’t be the case that often so I’ll change it most likely with the upcoming version.
No i dont use ssl at the moment because i use it only internally. But localhost is no option.
That would be nice. I try to get it to work with ssl.
Thank you for your fast response.
We do a basic check in the plugin, but browser won't allow write access to the clipboard without ssl: https://github.com/utomic-media/directus-extension-field-actions/blob/fef1b9faf3d121c890d59a787644fab8b0f5e3b7/src/shared/composable/use-clipboard.ts#L27-L29
In that case it's an expected behaviour, I'll close the issue.
NOTE: I'd NEVER recommend running it without ssl, even if it's just for internal usage.
You are right. I will move to ssl. Thanks a lot.
Hi Dominic
Very nice project.
i have running Directus version 10.12.1 running in docker.
The Link actions works and the icon for the link too.
But for copy to clipboard doent work and the icon dont show up. Same in Display and UI. If i use the action in display i have a button in the table view but there is nothing in the clipboard. I Use a String field.
Is there something wrong int the settings?
cheers Dominic