angular-toastr
angular-toastr copied to clipboard
can't override "preventOpenDuplicates"
more information please.
toastr.error("Test Error", "SMS Quota Required", { preventOpenDuplicates: true, timeOut: 0 });
When using the toast this way by overriding the "preventOpenDuplicates" (with true value) it's still not preventing to open duplicate toast. for the other properties like "timeOut" it works fine.
- using version 1.7.0
Tnx,
Ido
There are two kind of options, global ones and per toast ones. PreventOpenDuplicates is a global one (used on .config).
There is no way to say "This one toast, I don't want copies of it while open but allow it on this other one". At least no with the current implementation.
@Foxandxss I understand that it makes sense that "preventOpenDuplicates" is a global config. I think the docs should make this clearer, though, because the config for global config for individual toasts and the container is mixed with each other.
I think that this issue is also related with https://github.com/Foxandxss/angular-toastr/issues/226