fix(minor): bring back copy to clipboard
This commit is contained in:
parent
8dbc2832c5
commit
1cc626ff42
1 changed files with 12 additions and 0 deletions
|
|
@ -293,6 +293,7 @@ frappe.ui.form.Toolbar = class Toolbar {
|
|||
this.add_audit_trail();
|
||||
this.add_jump_to_field();
|
||||
this.add_show_links();
|
||||
this.add_copy_to_clipboard();
|
||||
this.add_remind_me();
|
||||
this.add_follow();
|
||||
this.add_undo_redo();
|
||||
|
|
@ -474,6 +475,17 @@ frappe.ui.form.Toolbar = class Toolbar {
|
|||
}
|
||||
}
|
||||
|
||||
add_copy_to_clipboard() {
|
||||
// copy doc to clipboard
|
||||
this.page.add_menu_item(
|
||||
__("Copy to Clipboard"),
|
||||
function () {
|
||||
frappe.utils.copy_to_clipboard(JSON.stringify(this.frm.doc));
|
||||
},
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
add_undo_redo() {
|
||||
// Undo and redo
|
||||
this.page.add_menu_item(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue