Activities of "sinan"

Hi, can you use useClass instead of useValue, while providing your customService.

For more information and examples, you can check our updated latest documentation about error handling. *> https://github.com/abpframework/abp/blob/20b7151d447e69aaa5944bddbc0842c5207fbd52/docs/en/UI/Angular/HTTP-Error-Handling.md

it will be reflected to https://docs.abp.io/en/abp/latest soon.

hi, you can follow related pr here

yes it has fixed. update your @abp/ng.theme.lepton-x to latest version which is 3.0.1.

btw in order to update lepton to version 3, you have to update angular to version 17 and abp to version 8.

our migration guides;

  • https://docs.abp.io/en/abp/latest/Migration-Guides/Index

Let me know if you have still problem

Hi, i understand your problem and it's related to the leptonx theme. I created a pull request about it, it will be fixed in next release.

I'll give back your question credit.

if the solution above doesnt work, try to change your component standalone metada and try again.

  • if its not standalone then marked as standalone.
  • if its standalone then remove standalone metada.

Hi, i have tried to reproduce your problem in a new project but i failed.

Can you send me your package.json file and reproduce steps?

hey! I am sorry for my previous unsatisfactory answer. I think the code below will help you.

import { UserMenuService } from '@abp/ng.theme.shared';
import { APP_INITIALIZER, Injector, inject } from '@angular/core';
import { Router } from '@angular/router';

export const CUSTOM_MENU_ITEM = [
    {
        provide: APP_INITIALIZER,
        useFactory: addSomethingToUserMenu,
        multi: true,
    },
];

export function addSomethingToUserMenu() {
    const userMenu = inject(UserMenuService);
    const router = inject(Router);

    return () => {
        userMenu.addItems([
            {
                id: 'customRoute',
                order: 100,
                textTemplate: {
                    icon: 'bi bi-link',
                    text: 'CustomRoute',
                },
                action: () => {
                    router.navigate(['/custom-route']);
                },
                visible: () => true,
            },
        ]);
    };
}

and put this to app.module providers.

@NgModule({
  ...
  providers: [APP_ROUTE_PROVIDER, CUSTOM_MENU_ITEM],
  ...
})
export class AppModule { }

We do not have implementation about your question.

you have to implement yourself

can you check the documentation below

https://docs.abp.io/en/commercial/latest/themes/lepton-x/angular#toolbar-component

Answer

hi, we have created a pr for this issue. it will be fixed at version 8.0

Showing 51 to 60 of 79 entries
Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11