Skip to content

Commit

Permalink
feat: add context to prompt dialog
Browse files Browse the repository at this point in the history
(cherry picked from commit d3121d7)
  • Loading branch information
barredterra authored and mergify[bot] committed Apr 4, 2023
1 parent 0e21299 commit 1bbf9c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frappe/public/js/frappe/ui/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ frappe.prompt = function(fields, callback, title, primary_label) {
if(!$.isArray(fields)) fields = [fields];
var d = new frappe.ui.Dialog({
fields: fields,
title: title || __("Enter Value"),
title: title || __("Enter Value", null, "Title of prompt dialog"),
});
d.set_primary_action(primary_label || __("Submit"), function() {
d.set_primary_action(primary_label || __("Submit", null, "Primary action of prompt dialog"), function() {
var values = d.get_values();
if(!values) {
return;
Expand Down

0 comments on commit 1bbf9c9

Please sign in to comment.