Hi pvala, We're working on it it'll fix next version (7.3-final). I Refunded your credit
Hello,
Actually there is already option for that can you please check the Dynamic-Form-Extensions Document
Hello, here's the PR , It'll fixed after 7.3-final publish. I've refunded your credit 🙂
Hi again, This messages is warning which means problem fixed, the reason of that there are peer dependencies on libraries. It must run correct right now ?
Hello,
I've tried to reproduce error but I didn't
angular
foldernpm install
Hello,
Can you add codes below to angular.json > styles section
{
"input": "node_modules/@volosoft/ngx-lepton-x/assets/css/font-bundle.css",
"inject": false,
"bundleName": "font-bundle"
},
{
"input": "node_modules/@volosoft/ngx-lepton-x/assets/css/font-bundle.rtl.css",
"inject": false,
"bundleName": "font-bundle.rtl"
}
Hello, I've created an issue for that also I refunded your credit. This issue will fixed at 7.2-patch 🙂
Hello Alexander,
For the customize guard system you can customize PermissionGuard like below
//custom-permission.guard.ts
import { HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Observable, of, switchMap, tap } from 'rxjs';
import { PermissionGuard } from '@abp/ng.core';
@Injectable({
providedIn: 'root',
})
export class CustomPermissionGuard extends PermissionGuard {
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> {
let { moduleId } = route.data || {};
return super.canActivate(route, state).pipe(
switchMap(access => {
if (!access) {
return of(false);
}
if (!moduleId) {
return of(true);
}
//Custom logic
return of(true);
}),
tap(access => {
if (!access && this.oAuthService.hasValidAccessToken()) {
this.httpErrorReporter.reportError({ status: 403 } as HttpErrorResponse);
}
}),
);
}
}
//app.module.ts
import { PermissionGuard } from '@abp/ng.core';
import { CustomPermissionGuard } from './custom-permission.guard';
@NgModule({
imports: [],
providers: [
{
provide: PermissionGuard,
useExisting: CustomPermissionGuard,
},
],
declarations: [AppComponent],
bootstrap: [AppComponent],
})
export class AppModule {}
//app-routing.module.ts
const routes: Routes = [
{
path: 'identity',
loadChildren: () => import('@abp/ng.identity').then(m => m.IdentityModule.forLazy()),
data: {
moduleId: 'Identity',
},
},
];
@NgModule({
imports: [RouterModule.forRoot(routes, {})],
exports: [RouterModule],
})
export class AppRoutingModule {}
Hello,
The bug fixed, you can update to 7.2.3 or 7.3.0
after publish. I'm closing this question :)