feat: Add call sound effects
This commit is contained in:
parent
6a87e3338b
commit
f1ffdb3c12
@ -170,6 +170,11 @@ default_roles = [
|
|||||||
{'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'},
|
{'role': 'Student', 'doctype':'Student', 'email_field': 'student_email_id'},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
sounds = [
|
||||||
|
{"name": "incoming-call", "src": "/assets/erpnext/sounds/incoming-call.mp3", "volume": 0.2},
|
||||||
|
{"name": "call-disconnect", "src": "/assets/erpnext/sounds/call-disconnect.mp3", "volume": 0.2},
|
||||||
|
]
|
||||||
|
|
||||||
has_website_permission = {
|
has_website_permission = {
|
||||||
"Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
"Sales Order": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
||||||
"Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
"Quotation": "erpnext.controllers.website_list_for_contact.has_website_permission",
|
||||||
|
@ -56,7 +56,7 @@ class CallPopup {
|
|||||||
delete erpnext.call_popup;
|
delete erpnext.call_popup;
|
||||||
this.dialog.hide();
|
this.dialog.hide();
|
||||||
});
|
});
|
||||||
frappe.utils.play_sound("incoming_call");
|
frappe.utils.play_sound("incoming-call");
|
||||||
this.dialog.show();
|
this.dialog.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,7 +132,7 @@ class CallPopup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
call_disconnected(call_log) {
|
call_disconnected(call_log) {
|
||||||
frappe.utils.play_sound("call_disconnect");
|
frappe.utils.play_sound("call-disconnect");
|
||||||
this.update_call_log(call_log);
|
this.update_call_log(call_log);
|
||||||
setTimeout(this.get_close_btn().click, 10000);
|
setTimeout(this.get_close_btn().click, 10000);
|
||||||
}
|
}
|
||||||
|
BIN
erpnext/public/sounds/call-disconnect.mp3
Normal file
BIN
erpnext/public/sounds/call-disconnect.mp3
Normal file
Binary file not shown.
BIN
erpnext/public/sounds/incoming-call.mp3
Normal file
BIN
erpnext/public/sounds/incoming-call.mp3
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user