From 79b2298e25c919ac6d232f02f9338bd26602d30d Mon Sep 17 00:00:00 2001 From: tens0rfl0w Date: Sun, 27 Oct 2024 17:26:54 +0100 Subject: [PATCH] fix(ext/cfx-ui): afterRender not firing for identity service This fixes an oversight in a previous change that does not register the afterRender function from linkedIdentities.service in the target list. --- .../services/linkedIdentities/linkedIdentities.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/cfx-ui/src/cfx/apps/mpMenu/services/linkedIdentities/linkedIdentities.service.ts b/ext/cfx-ui/src/cfx/apps/mpMenu/services/linkedIdentities/linkedIdentities.service.ts index fdac6264f2..02ae63f9f6 100644 --- a/ext/cfx-ui/src/cfx/apps/mpMenu/services/linkedIdentities/linkedIdentities.service.ts +++ b/ext/cfx-ui/src/cfx/apps/mpMenu/services/linkedIdentities/linkedIdentities.service.ts @@ -1,7 +1,7 @@ import { inject, injectable } from 'inversify'; import { ServicesContainer } from 'cfx/base/servicesContainer'; -import { AppContribution } from 'cfx/common/services/app/app.extensions'; +import { AppContribution, registerAppContribution } from 'cfx/common/services/app/app.extensions'; import { IdentitiesChangeEvent } from 'cfx/common/services/linkedIdentities/events'; import { ILinkedIdentitiesService } from 'cfx/common/services/linkedIdentities/linkedIdentities.service'; import { ILinkedIdentity } from 'cfx/common/services/linkedIdentities/types'; @@ -14,6 +14,8 @@ import { IConvarService } from '../convars/convars.service'; export function registerLinkedIdentitiesService(container: ServicesContainer) { container.registerImpl(ILinkedIdentitiesService, LinkedIdentitiesService); + + registerAppContribution(container, LinkedIdentitiesService); } @injectable()