Add doesn't work after reset
Opened this issue · 2 comments
jozsi commented
The following, self-explanatory code results in an empty mcMessages array (no message displayed).
messageCenterService.reset();
messageCenterService.add('danger', 'This is dangerous');
A workaround for this is to use:
messageCenterService.markShown();
messageCenterService.removeShown();
messageCenterService.add('danger', 'This is dangerous');
kikonen-fiksu commented
It looks like reset is broken.
With this change reset started to work better for me
reset: function () {
this.mcMessages.splice(0, this.mcMessages.length);
},
simison commented
@kikonen-fiksu or @jozsi PR please?