While in Drafts folder, can't compose a bug report
While in the Drafts folder, I was trying to click the Compose bug report button, but it didn't open a new message for me.
Instead, the counter for Drafts was going up, but the reports weren't showing there.
As you can see, the Drafts counter shows 22, but it's not refreshing the drafts list.
Then, when I switch to another folder and go back to Drafts, all those 22 bug reports show, but when I click delete on one of them, all those messages get deleted.
Steps to reproduce:
- Go into the Drafts folder (it's easier to see when it's empty, but with messages inside, the behaviour will be the same)
- Click on Compose bug report, you'll see the Drafts counter go up.
- You'll see that nothing appeared in the folder.
- Switch to some other folder.
- Go back to Drafts.
- Try deleting one of the bug reports, all of them should get deleted.
I think its not showing the correct screen when "Compose a bug report" is clicked because of the route / router.
This probably happens because the route from "compose a bug report" is the same as "compose"/"draft". If the route is the same, the router will not open the same route again by default.
Attempted the following, but no luck:
this.initialiseState();
Attempted this also but no luck:
this.router.routeReuseStrategy.shouldReuseRoute = () => false;
Maybe it needs a http://url#hash to refresh the view. Like it does when changing folders.