Nebular: Toastr doesn't appear

Created on 20 Dec 2018  路  7Comments  路  Source: akveo/nebular

Issue type

I'm submitting a ... (check one with "x")

  • [x] bug report
  • [x] feature request

Issue description

Current behavior:

First, you go to the dashboard page that includes some codes to show toastr on AfterViewInit. It will show toastr.
And then you go to login page(because of logout),
when you try to open again the dashboard, it doesn't appear.
The global overlay wrapper that contains nb-toastr-container is not in the login page.
so, whenever you get the dashboard again(right after opening one of auth page) angular will re-render layouts and components you made but toastr seems still holding destroyed nb-toastr-container and it's not re-rendered.

Expected behavior:

Showing toastr

Steps to reproduce:

with ngx-admin

  1. add toastr call on dashboard.
  2. open dashboard.
  3. go to one of auth page.
  4. back to dashboard
  5. toastr doesn't appear

Other information:

npm, node, OS, Browser

node: v10.13.0
npm: v6.4.1
Tested OS: Mac Mojave, Windows 10
Tested Browser: Chrome/Safari/Edge

Angular, Nebular

it's the same as the files in ngx-admin

feature request
is there any way to place toast component manually?
if a page I made is not in layout(but it imports theme module like auth page), there is no way to use toastr.
sometimes we need full screen page with using toastr this way.

urgent bug components

All 7 comments

I've been struggling with this for the past couple weeks as well. Hoping someone has a solution.

I have the same problem. If I change module 2 times than toasts does not appear. I have my own modules client and admin and if I go from client to admin and back than any toast show. With login and logout it is the same.

Hello @nnixaa its not fixed.

Using 3.2.1 version (so latest release) and still not working.

It is scheduled for 3.3.0, should be released relatively soon:
image

I have the same problem.

I still have the same issue. When I navigate from auth module to main module toastr doesn't appear. (version 4.5.0)

It is scheduled for 3.3.0, should be released relatively soon:
image

Same problem with v 5.0.0

Was this page helpful?
0 / 5 - 0 ratings