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