Stop popup on saveCurrentItem()

Hi,

We are developing an autosave plugin using below link:
https://www.datocms.com/docs/plugin-sdk/react-datocms-ui

We are using a function ctx.saveCurrentItem() for saving the current item. A popup comes saying ā€œRecord succesfully savedā€ every time this function is called.

Can we stop that popup while calling ctx.saveCurrentItem()?

Thanks,
Jyotirmoy Biswas

Hello @jyoti

That popup is the native response of the dashboard for when you save a record, and you canā€™t modify it. It always appears when a record is saved.
Could i know your use case for changing it?

Hi,

Thanks for your feedback.

We were developing an auto save plugin. That plugin will update the record with some time gap. But the popup on the save is interrupting the editors.

Thanks,
Jyotirmoy Biswas

Hey @jyoti next week weā€™ll ship a new ctx.saveCurrentItem(showToast: boolean) method! Iā€™ll keep you posted!

Great!

Thanks,
Jyotirmoy Biswas

Done! plugins-sdk/types.ts at master Ā· datocms/plugins-sdk Ā· GitHub

Hi,

Great! Thanks for the quick change.

Thanks again,
Jyotirmoy Biswas