angular-toastr icon indicating copy to clipboard operation
angular-toastr copied to clipboard

can't override "preventOpenDuplicates"

Open idoglik6 opened this issue 9 years ago • 5 comments

idoglik6 avatar Feb 29 '16 13:02 idoglik6

more information please.

Foxandxss avatar Feb 29 '16 13:02 Foxandxss

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

idoglik6 avatar Feb 29 '16 13:02 idoglik6

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 avatar Feb 29 '16 14:02 Foxandxss

@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.

Narretz avatar Nov 23 '16 14:11 Narretz

I think that this issue is also related with https://github.com/Foxandxss/angular-toastr/issues/226

greybax avatar May 25 '17 19:05 greybax