feat: let's custom message for copy_to_clipboard

This commit is contained in:
git-avc 2025-11-22 22:40:43 +01:00
parent 370efbd3e8
commit 74c7bb5d10

View file

@ -1031,11 +1031,11 @@ Object.assign(frappe.utils, {
}
return decoded;
},
copy_to_clipboard(string) {
copy_to_clipboard(string, message) {
const show_success_alert = () => {
frappe.show_alert({
indicator: "green",
message: __("Copied to clipboard."),
message: message || __("Copied to clipboard."),
});
};
if (navigator.clipboard && window.isSecureContext) {