Finisch Notification Settings System

This commit is contained in:
headlesdev
2025-05-26 15:29:20 +02:00
parent 61a9442443
commit 22c7ce29e3
2 changed files with 292 additions and 143 deletions

View File

@@ -97,7 +97,7 @@ const useNotifications = () => {
const editNotificationApplicationsSettings = (settings: any): Promise<string> | string => {
return axios.post('/api/notifications/settings_applications_edit', settings)
.then((response) => {
return response.data.notificationSettings;
return response.data.notification;
})
.catch(err => {
throw err.response?.data?.error || 'An error occurred';
@@ -107,7 +107,7 @@ const useNotifications = () => {
const editNotificationServerSettings = (settings: any): Promise<string> | string => {
return axios.post('/api/notifications/settings_server_edit', settings)
.then((response) => {
return response.data.notificationSettings;
return response.data.notification;
})
.catch(err => {
throw err.response?.data?.error || 'An error occurred';