Skip to content

Commit bab7778

Browse files
Fix - Button Text issue on guttenberg block popup settings
1 parent f2fb064 commit bab7778

File tree

1 file changed

+6
-1
lines changed
  • src/blocks/blocks/form-selector

1 file changed

+6
-1
lines changed

src/blocks/blocks/form-selector/Edit.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ const Edit = (props) => {
5050
setAttributes({ displayDescription: description });
5151
};
5252

53+
const textMap = {
54+
"popup-link": __("Popup Link Text", "everest-forms"),
55+
"popup-button": __("Popup Button Text", "everest-forms"),
56+
};
57+
5358
return (
5459
<>
5560
<ChakraProvider>
@@ -175,7 +180,7 @@ const Edit = (props) => {
175180
{"popup" !== popupType && (
176181
<TextControl
177182
label={__(
178-
"Popup Button Text",
183+
textMap[popupType],
179184
"everest-forms",
180185
)}
181186
value={popupButtonText}

0 commit comments

Comments
 (0)