feat: let's custom message for copy_to_clipboard
This commit is contained in:
parent
370efbd3e8
commit
74c7bb5d10
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue