We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 829c984 commit 94488ceCopy full SHA for 94488ce
packages/app/src/use/storage/local.ts
@@ -52,7 +52,7 @@ export const useLocalStorage = () => {
52
return project ? storage.support(project) : undefined
53
}
54
55
- const onSaveProject = async (event: boolean = true) => {
+ const onSaveProject = async (event: boolean = true, notify: boolean = true) => {
56
if (PROJECT.name === env.projectEmpty()) return
57
58
const editor = document.querySelector('#edit')
@@ -69,7 +69,7 @@ export const useLocalStorage = () => {
69
70
setProject(storage.getProjectObject())
71
72
- toast.success(t('toast.project.save'))
+ if(notify) toast.success(t('toast.project.save'))
73
})
74
.finally(() => {
75
plugin.emit('plugin-progress-end')
0 commit comments