KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Dashboard->default(true) not working? #2084

Closed Christian Voß opened this topic on on May 14, 2021 - 2 comments

Christian Voß commented on May 14, 2021

Hi,

not sure if this is a bug, or if I'm doing anything wrong.

I currently have 2 dashboards in my application:

protected function dashboards()
    {
        return [
        "Home"=> Home\HomeBoard::create()
        ->default(true)
        ->icon("fa fa-home"), 

        "SLC" => SLCMain\SLCMainBoard::create()
        ->default(false)
        ->icon("fa fa-list-alt"),
           
        ];
    }

When the application starts, I want the Homeboard to come up, that's why I set it to default. However, this doesn't work, it's always the second board coming up (no menu button activated). Even if I hide the second board, it's shown by default, just the button in the menu is missing.

I'm not overwriting the default setting anywhere,l therefore I'm not sure what is wrong.

Any help would be very appreciated.

Thanks

Christian

KoolReport commented on May 14, 2021

In this version of Dashboard, we do use Session to remember last dashboard that it opens so it could be this issue. But for sure that for the new user who first visit the dashboard app, it will open the default first (you can test with icognito). In the next version, we change to url rewrite and remove the Session so I think this issue will be solved as well.

Christian Voß commented on May 14, 2021

I tried it with incognito, but it didn't work.

I figured out that the problem only occurred because I run the dashboard within my own application without providing a user to the dashboard.

It works fine, since I fixed it.

Thanks and best regards

Christian

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
bug
help needed

None