mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
Including notification util changes
This commit is contained in:
parent
7b1a85617f
commit
b4b0774189
2 changed files with 11 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import useLogosStore from '../store/logos';
|
|||
import useVODLogosStore from '../store/vodLogos';
|
||||
import LogosTable from '../components/tables/LogosTable';
|
||||
import VODLogosTable from '../components/tables/VODLogosTable';
|
||||
import { showNotification } from '../utils/notificationUtils.js';
|
||||
|
||||
const LogosPage = () => {
|
||||
const logos = useLogosStore(s => s.logos);
|
||||
|
|
@ -20,7 +21,7 @@ const LogosPage = () => {
|
|||
await useLogosStore.getState().fetchAllLogos();
|
||||
}
|
||||
} catch (err) {
|
||||
notifications.show({
|
||||
showNotification({
|
||||
title: 'Error',
|
||||
message: 'Failed to load channel logos',
|
||||
color: 'red',
|
||||
|
|
|
|||
9
frontend/src/utils/notificationUtils.js
Normal file
9
frontend/src/utils/notificationUtils.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { notifications } from '@mantine/notifications';
|
||||
|
||||
export function showNotification(notificationObject) {
|
||||
return notifications.show(notificationObject);
|
||||
}
|
||||
|
||||
export function updateNotification(notificationId, notificationObject) {
|
||||
return notifications.update(notificationId, notificationObject);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue