Skip to content

Commit 4f4adb3

Browse files
committed
[5.13.2] Updated default Notification duration changed to 10s
1 parent 9d89575 commit 4f4adb3

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 5.13.2
2+
3+
### Updated
4+
5+
- Default `Notification` duration changed to 10s (you can change it by passing it manually)
6+
17
## 5.13.1
28

39
### Updated

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ See demo at [https://detools-vue-form.netlify.com](https://detools-vue-form.netl
8282

8383
## Changelog
8484

85+
- [5.13.2](/CHANGELOG.md#5132)
8586
- [5.13.1](/CHANGELOG.md#5131)
8687
- [5.13.0](/CHANGELOG.md#5130)
8788
- [5.12.3](/CHANGELOG.md#5123)

VueForm/components/Notification.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,30 @@ export default new Vue({
1313
)
1414
},
1515

16-
getHandler(type, message, title) {
16+
getHandler(type, message, title, duration = 10000) {
1717
if (message) {
1818
Notification[type]({
1919
title: startCase(isUndefined(title) ? type : title),
2020
message: this.renderMessage(message),
21+
duration,
2122
})
2223
}
2324
},
2425

25-
success(message, title) {
26-
return this.getHandler('success', message, title)
26+
success(message, title, duration) {
27+
return this.getHandler('success', message, title, duration)
2728
},
2829

29-
warning(message, title) {
30-
return this.getHandler('warning', message, title)
30+
warning(message, title, duration) {
31+
return this.getHandler('warning', message, title, duration)
3132
},
3233

33-
info(message, title) {
34-
return this.getHandler('info', message, title)
34+
info(message, title, duration) {
35+
return this.getHandler('info', message, title, duration)
3536
},
3637

37-
error(message, title) {
38-
return this.getHandler('error', message, title)
38+
error(message, title, duration) {
39+
return this.getHandler('error', message, title, duration)
3940
},
4041
},
4142
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@detools/vue-form",
3-
"version": "5.13.1",
3+
"version": "5.13.2",
44
"description": "Form State Management for VueJS",
55
"main": "VueForm/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)