SchweizerischeBundesbahnen/scion-workbench

CanClose invoked in wrong injection context

Closed this issue · 0 comments

Describe the bug

The CanClose guard should be invoked in the view's injection context, enabling the injection of the MessageBoxService provided at the view level.

To Reproduce

Steps to reproduce the behavior:

  1. Implement CanClose lifecycle hook
  2. Inject MessageBoxService in canClose and open a message
  3. Expect message box to be opened view modal
  4. See that message box is opened application modal