Skip to content

Commit c6c5b66

Browse files
committed
modal heading updated
1 parent 422f86b commit c6c5b66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/javascript/components/data-tables/datastore/class-fields-editor.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export const ClassFieldsEditor = (props) => {
191191

192192
<Modal
193193
open={state.isModalOpen}
194-
modalHeading="Edit"
194+
modalHeading={state.selectedRowId === undefined ? __('Add New Field') : __('Edit Field')}
195195
onRequestClose={handleModalClose}
196196
passiveModal
197197
>
@@ -206,7 +206,7 @@ export const ClassFieldsEditor = (props) => {
206206
onSubmit={onModalSubmit}
207207
onCancel={handleModalClose}
208208
canReset
209-
buttonsLabels={{ submitLabel: __('Accept') }}
209+
buttonsLabels={{ submitLabel: __('Save') }}
210210
/>
211211
</Modal>
212212

0 commit comments

Comments
 (0)