Skip to content

Conversation

@blesildaramirez
Copy link
Contributor

No description provided.

Copy link
Contributor

@jardakotesovec jardakotesovec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, main question is whether we could use FieldPreparedContent instead of FieldRichTextArea to have good reuse with what we have in the form for editing/adding mail templates.

userGroupsApiUrl,
{
page: 1,
pageSize: 50,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We for sure want to fetch all of them, right? 50 should be enough. But to be super safe lets go with 1000 or something like that :-)

{label: 'Section Editor', value: pkp.const.ROLE_ID_SUB_EDITOR},
];
const {apiUrl: userGroupsApiUrl} = useUrl(
`contexts/${pkp.context.id}/userGroups`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggested to Vitaliy on mattermost to move this outside of the context.. so this url might move, lets see how the discussion evolves.

text: t('common.insertContent'),
onAction() {
const {openSideModal} = useModal(FieldPreparedContentInsertModal);
const {openSideModal, closeSideModal} = useModal(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be possible to use the FieldPreparedContent as its used in form for adding/editing email templates? Seems that we are duplicating some logic from that.

…dy payload when adding a new task template
@blesildaramirez blesildaramirez merged commit 7632260 into pkp:main Oct 27, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants