Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/actions/sponsor-forms-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ export const getSponsorCustomizedForms =
const params = {
page,
fields:
"id,code,name,is_archived,opens_at,expires_at,items_count,allowed_add_ons",
"id,code,name,is_archived,opens_at,expires_at,items_count,allowed_add_ons,original_show_form_id",
expands: "allowed_add_ons",
per_page: perPage,
access_token: accessToken
Expand Down
1 change: 1 addition & 0 deletions src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2499,6 +2499,7 @@
"unarchive": "Unarchive",
"add_form_using_template": "Add Form Using Template",
"add_selected_form_template": "Add Selected Form Template",
"customized": "CUSTOMIZED",
"customized_form": {
"new_form_title": "Create New Form",
"edit_form_title": "Edit Form",
Expand Down
15 changes: 14 additions & 1 deletion src/pages/sponsors/sponsor-page/tabs/sponsor-forms-tab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
Box,
Button,
Checkbox,
Chip,
FormControlLabel,
FormGroup,
Grid2
Expand Down Expand Up @@ -261,7 +262,19 @@ const SponsorFormsTab = ({
columnKey: "name",
header: name,
sortable: true,
width: 235
width: 235,
render: (row) =>
row.original_show_form_id > 0 ? (
<>
{row.name}&nbsp;
<Chip
size="small"
label={T.translate("edit_sponsor.forms_tab.customized")}
/>
</>
) : (
row.name
)
},
{
columnKey: "code",
Expand Down
3 changes: 2 additions & 1 deletion src/reducers/sponsors/sponsor-page-forms-list-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ const sponsorPageFormsListReducer = (state = DEFAULT_STATE, action) => {
allowed_add_ons: a.allowed_add_ons,
is_archived: a.is_archived,
opens_at: opensAt,
expires_at: expiresAt
expires_at: expiresAt,
original_show_form_id: a.original_show_form_id
};
});

Expand Down
Loading