Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion web/src/user/index.entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { DEFAULT_CONFIG } from "#common/api/config";
import {
EVENT_API_DRAWER_TOGGLE,
EVENT_NOTIFICATION_DRAWER_TOGGLE,
EVENT_REFRESH,
EVENT_WS_MESSAGE,
} from "#common/constants";
import { globalAK } from "#common/global";
Expand Down Expand Up @@ -209,7 +210,10 @@ class UserInterfacePresentation extends WithBrandConfig(AKElement) {
/>
</a>
</div>
<ak-nav-buttons .uiConfig=${this.uiConfig} .me=${this.me}
<ak-nav-buttons
.uiConfig=${this.uiConfig}
.me=${this.me}
.notificationCount=${this.notificationsCount}
>${this.renderAdminInterfaceLink()}</ak-nav-buttons
>
</header>
Expand Down Expand Up @@ -297,6 +301,7 @@ export class UserInterface extends WithBrandConfig(AuthenticatedInterface) {
window.addEventListener(EVENT_NOTIFICATION_DRAWER_TOGGLE, this.toggleNotificationDrawer);
window.addEventListener(EVENT_API_DRAWER_TOGGLE, this.toggleApiDrawer);
window.addEventListener(EVENT_WS_MESSAGE, this.fetchConfigurationDetails);
window.addEventListener(EVENT_REFRESH, this.fetchConfigurationDetails);
}

disconnectedCallback() {
Expand All @@ -305,6 +310,7 @@ export class UserInterface extends WithBrandConfig(AuthenticatedInterface) {
window.removeEventListener(EVENT_NOTIFICATION_DRAWER_TOGGLE, this.toggleNotificationDrawer);
window.removeEventListener(EVENT_API_DRAWER_TOGGLE, this.toggleApiDrawer);
window.removeEventListener(EVENT_WS_MESSAGE, this.fetchConfigurationDetails);
window.removeEventListener(EVENT_REFRESH, this.fetchConfigurationDetails);

WebsocketClient.close();
}
Expand Down
Loading