From ac9094ac8a08580dc8ae5931507f556cfa25f479 Mon Sep 17 00:00:00 2001 From: hrwx Date: Wed, 22 Dec 2021 14:18:33 +0000 Subject: [PATCH 1/2] chore: update msg_print messages --- frappe/www/update-password.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frappe/www/update-password.html b/frappe/www/update-password.html index 7ac88d04b0..a7254b3fd6 100644 --- a/frappe/www/update-password.html +++ b/frappe/www/update-password.html @@ -69,14 +69,14 @@ frappe.ready(function() { const confirm_password = $('#confirm_password').val() if (!args.old_password && !args.key) { frappe.msgprint({ - title: "{{ _('Message') }}", + title: "{{ _('Missing Value Required') }}", message: "{{ _('Old Password Required.') }}", clear: true }); } if (!args.new_password) { frappe.msgprint({ - title: "{{ _('Message') }}", + title: "{{ _('Missing Value Required') }}", message: "{{ _('New Password Required.') }}", clear: true }); @@ -110,8 +110,8 @@ frappe.ready(function() { .html("{{ _('Status Updated') }}"); if(r.message) { frappe.msgprint({ - title: "{{ _('Message') }}", - message: "{{ _('Password Updated') }}", + title: "{{ _('Password changed') }}", + message: "{{ _('Password has been changed successfully.') }}", // password is updated successfully // clear any server message clear: true From f123ed09b5cf817bb18cd35c0a4d620576c37d36 Mon Sep 17 00:00:00 2001 From: Himanshu Date: Wed, 22 Dec 2021 20:08:15 +0000 Subject: [PATCH 2/2] chore: update title and messages for frappe.msgprint Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com> --- frappe/www/update-password.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frappe/www/update-password.html b/frappe/www/update-password.html index a7254b3fd6..15cdd6ffc2 100644 --- a/frappe/www/update-password.html +++ b/frappe/www/update-password.html @@ -69,15 +69,15 @@ frappe.ready(function() { const confirm_password = $('#confirm_password').val() if (!args.old_password && !args.key) { frappe.msgprint({ - title: "{{ _('Missing Value Required') }}", - message: "{{ _('Old Password Required.') }}", + title: "{{ _('Missing Value') }}", + message: "{{ _('Please enter your old password.') }}", clear: true }); } if (!args.new_password) { frappe.msgprint({ - title: "{{ _('Missing Value Required') }}", - 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: "{{ _('Password changed') }}", - message: "{{ _('Password has been changed successfully.') }}", + title: "{{ _('Password set') }}", + message: "{{ _('Your new password has been set successfully.') }}", // password is updated successfully // clear any server message clear: true