From 19c2c29df0ab6964438ca0f93c83c4af0a400141 Mon Sep 17 00:00:00 2001 From: alexsparkes Date: Sat, 24 Jan 2026 15:50:47 +0000 Subject: [PATCH] fix(navbar): emit refresh event on app link add, edit, and delete actions --- src/features/navbar/options/AppsOptions.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/features/navbar/options/AppsOptions.jsx b/src/features/navbar/options/AppsOptions.jsx index ce76852a..fe65e1d1 100644 --- a/src/features/navbar/options/AppsOptions.jsx +++ b/src/features/navbar/options/AppsOptions.jsx @@ -3,6 +3,7 @@ import variables from 'config/variables'; import { useState } from 'react'; import Modal from 'react-modal'; +import EventBus from 'utils/eventbus'; import { MdAddLink } from 'react-icons/md'; import { AddModal } from 'components/Elements/AddModal'; @@ -61,6 +62,7 @@ function AppsOptions({ appsEnabled }) { iconError: '', }); + EventBus.emit('refresh', 'navbar'); variables.stats.postEvent('feature', 'App link add'); }; @@ -87,6 +89,8 @@ function AppsOptions({ appsEnabled }) { edit: false, newLink: false, })); + + EventBus.emit('refresh', 'navbar'); }; const deleteLink = (key, event) => { @@ -102,6 +106,7 @@ function AppsOptions({ appsEnabled }) { items: data, })); + EventBus.emit('refresh', 'navbar'); variables.stats.postEvent('feature', 'App link delete'); };