Skip to content

Commit d0ceefa

Browse files
committed
Release 1.7.0
1 parent eff510c commit d0ceefa

File tree

7 files changed

+19
-5
lines changed

7 files changed

+19
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## Version 1.7.0
4+
5+
- `toastr` service has an `active()` method to get all the opened toasts.
6+
37
## Version 1.6.0
48

59
- onTap callback receives the whole toast as the first parameter.
@@ -43,7 +47,7 @@
4347

4448
- Support for a progress bar.
4549
- A config option to change the path of the templates.
46-
50+
4751
**BREAKING CHANGE:**
4852

4953
If you were using a custom template using the default path, it changed from:

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-toastr",
3-
"version": "1.6.0",
3+
"version": "1.7.0",
44
"authors": [
55
"Jesus Rodriguez <[email protected]>"
66
],

dist/angular-toastr.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
var containerDefer = $q.defer();
1818

1919
var toast = {
20+
active: active,
2021
clear: clear,
2122
error: error,
2223
info: info,
@@ -28,6 +29,10 @@
2829
return toast;
2930

3031
/* Public API */
32+
function active() {
33+
return toasts.length;
34+
}
35+
3136
function clear(toast) {
3237
// Bit of a hack, I will remove this soon with a BC
3338
if (arguments.length === 1 && !toast) { return; }

dist/angular-toastr.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-toastr.tpls.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
var containerDefer = $q.defer();
1818

1919
var toast = {
20+
active: active,
2021
clear: clear,
2122
error: error,
2223
info: info,
@@ -28,6 +29,10 @@
2829
return toast;
2930

3031
/* Public API */
32+
function active() {
33+
return toasts.length;
34+
}
35+
3136
function clear(toast) {
3237
// Bit of a hack, I will remove this soon with a BC
3338
if (arguments.length === 1 && !toast) { return; }

0 commit comments

Comments
 (0)