Base solution for your next web application
Open Closed

Hangfire link in menu #3441


User avatar
0
pumbinha created

Hi all,

I'm trying to use Hangfire with ASPNET Zero and after activating it I can reach the control panel when I manually write the url: /hangfire.

Is it any way to integrate in the Menu System of the dashboard?

I've changed the AppNavigationProviced class to set the proper values but I suppose that I have to change the App.js file... but it's not rerouted... how should I do it?


4 Answer(s)
  • User Avatar
    0
    pumbinha created

    If it helps, that's what I added in the AppNavigationProvider Class:

    ).AddItem(new MenuItemDefinition(
                                PageNames.App.Host.Hangfire,
                                L("Hangfire"),
                                url: "/hangfire",
                                icon: "icon-wrench",
                                target:"_blank",
                                requiredPermissionName: AppPermissions.Pages_Administration_HangfireDashboard
                            )
    
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @ pumbinha,

    Do you use one of angular1 or angular2 versions ?

    Thanks.

  • User Avatar
    0
    pumbinha created

    Hi,

    I'm currently using version 1.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    I haven't tried this but probably you need to listend route change event for angular1 and make a full page refresh when hangfire root selected in app.js. Something like this:

    $rootScope.$on("$locationChangeStart", function(event, next, current) { 
            // make full page load here...    
        });