Добавил уведомление о создании отчета

This commit is contained in:
brusnitsyn
2026-06-23 17:28:52 +09:00
parent 8e6bbc5f91
commit 6942b0c091
9 changed files with 121 additions and 42 deletions

View File

@@ -10,8 +10,16 @@ export function useNotification() {
return null
}
const success = () => {
const success = (title, description = '', options = {}) => {
return showNotification(
{
title,
description,
meta: options.meta || new Date().toLocaleDateString(),
...options,
type: 'success'
}
)
}
const errorApi = (data, content = '', options = {}) => {
@@ -36,6 +44,7 @@ export function useNotification() {
}
return {
errorApi
errorApi,
success
}
}