Cli command
abp new Acme.BookStore -u angular -t app-pro -theme lepton
lepton theme no longer supported?
6 Answer(s)
-
0
Hi,
Lepton theme is not supported for new project but still we maintain our packages. It seems there is problem in the library, Our Angular team will check the problem soon
-
0
Hello, thank you for reporting this. It will be fixed by next patch release. So, I am refunding your ticket.
-
0
Thank you for your reply.
Could you please tell me if there is a temporary fix for this error?
Or, if you can specify the release date for the fix, we can arrange the upgrade plan accordingly. -
0
We have the same error with an existing application using the lepton theme.
Also, are there any plans to remove the lepton theme so we need to migrate to lepton-x, or is it still OK to use it? -
0
Thank you for your reply.
Could you please tell me if there is a temporary fix for this error?
Or, if you can specify the release date for the fix, we can arrange the upgrade plan accordingly.You can track the latest patch releases for a fix at the following link: ABP Patch Releases.
In the meantime, I recommend overriding the function that is causing the issue as a temporary solution.
To do this, create a
CustomImpersonationService
that extendsImpersonationService
:import { Injectable } from '@angular/core'; import { ImpersonationService } from '@volo/abp.commercial.ng.ui/config'; @Injectable({ providedIn: 'root' }) export class CustomImpersonationService extends ImpersonationService { constructor() { super(); } override isImpersonatorVisible(): boolean { const { currentUser: { impersonatorUserId: userId } = {} } = this.configState.getAll(); return !!userId; } }
Once created, add it to the
providers
array inapp.module.ts
.{ provide: ImpersonationService, useClass: CustomImpersonationService },
Let me know if you need further assistance.
-
0
We have the same error with an existing application using the lepton theme.
Also, are there any plans to remove the lepton theme so we need to migrate to lepton-x, or is it still OK to use it?Hello, the Lepton theme remains valid for use, and there are currently no plans to discontinue its support.