aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/connectApp/src/plugin.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'sdnr/wt/odlux/apps/connectApp/src/plugin.tsx')
-rw-r--r--sdnr/wt/odlux/apps/connectApp/src/plugin.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sdnr/wt/odlux/apps/connectApp/src/plugin.tsx b/sdnr/wt/odlux/apps/connectApp/src/plugin.tsx
index 4a02b9f35..4da33e0af 100644
--- a/sdnr/wt/odlux/apps/connectApp/src/plugin.tsx
+++ b/sdnr/wt/odlux/apps/connectApp/src/plugin.tsx
@@ -23,20 +23,20 @@ type ObjectNotification = {
export function register() {
const applicationApi = applicationManager.registerApplication({
- name: "connectApp",
+ name: "connect",
icon: faPlug,
rootComponent: ConnectApplication,
rootActionHandler: connectAppRootHandler,
- menuEntry: "Connect App"
+ menuEntry: "Connect"
});
// subscribe to the websocket notifications
- subscribe<ObjectNotification & IFormatedMessage>(["ObjectCreationNotification", "ObjectDeletionNotification"], (msg => {
+ subscribe<ObjectNotification & IFormatedMessage>(["ObjectCreationNotification", "ObjectDeletionNotification","AttributeValueChangedNotification"], (msg => {
const store = applicationApi && applicationApi.applicationStore;
if (msg && msg.notifType === "ObjectCreationNotification" && store) {
store.dispatch(addMountedNetworkElementAsyncActionCreator(msg.objectId));
store.dispatch(new AddSnackbarNotification({ message: `Adding network element [${ msg.objectId }]`, options: { variant: 'info' } }));
- } else if (msg && msg.notifType === "ObjectDeletionNotification" && store) {
+ } else if (msg && (msg.notifType === "ObjectDeletionNotification" || msg.notifType === "AttributeValueChangedNotification") && store) {
store.dispatch(new AddSnackbarNotification({ message: `Updating network element [${ msg.objectId }]`, options: { variant: 'info' } }));
store.dispatch(updateMountedNetworkElementAsyncActionCreator(msg.objectId));
}