Configuring the UI
The Notification Center can be added to any Atoti UI application with version greater than or equal to 5.2.0.
Adding the Notification Center to the UI
To add the notification center you need to add the following dependency to your package.json
.
"dependencies": {
...
+ "@activeviam/bas-notification": "5.2.6",
...
}
This dependency exports the enableNotificationServiceForServer
function which accepts the configuration and the serverKey
of the specified server.
Below is an example of how to add this to your activation function. Please update the ${serverKey}
with the server key of your server.
+ import { enableNotificationServiceForServer } from "@activeviam/bas-notification";
const extension: ExtensionModule = {
activate: async (configuration: Configuration) => {
...
+ enableNotificationServiceForServer(configuration, `%{serverKey}`);
}
}
You can add the notification service for multiple servers by repeating the enableNotifcationServiceForServer
with different serverKeys
.