Merge pull request #15413 from hrwX/update_notification_msg

chore: update msg_print messages
This commit is contained in:
mergify[bot] 2021-12-23 18:07:07 +00:00 committed by GitHub
commit 6ba68ea5a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,15 +69,15 @@ frappe.ready(function() {
const confirm_password = $('#confirm_password').val()
if (!args.old_password && !args.key) {
frappe.msgprint({
title: "{{ _('Message') }}",
message: "{{ _('Old Password Required.') }}",
title: "{{ _('Missing Value') }}",
message: "{{ _('Please enter your old password.') }}",
clear: true
});
}
if (!args.new_password) {
frappe.msgprint({
title: "{{ _('Message') }}",
message: "{{ _('New Password Required.') }}",
title: "{{ _('Missing Value') }}",
message: "{{ _('Please enter your new password.') }}",
clear: true
});
}
@ -110,8 +110,8 @@ frappe.ready(function() {
.html("{{ _('Status Updated') }}");
if(r.message) {
frappe.msgprint({
title: "{{ _('Message') }}",
message: "{{ _('Password Updated') }}",
title: "{{ _('Password set') }}",
message: "{{ _('Your new password has been set successfully.') }}",
// password is updated successfully
// clear any server message
clear: true