File tree 1 file changed +7
-6
lines changed
1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 22
22
<div class =" inner cover" >
23
23
<div class =" alert alert-danger alert-dismissible" v-if =" showError" transition =" expand" role =" alert" >
24
24
<button type =" button" class =" close" data-dismiss =" alert" aria-label =" Close" v-on:click =" showError = false" ><span aria-hidden =" true" >× ; </span ></button >
25
- <strong >Error!</strong > {{message }}
25
+ <strong >Error!</strong > {{errorMessage }}
26
26
</div >
27
27
<div class =" alert alert-success" v-if =" showSuccess" transition =" expand" role =" alert" >
28
- <strong >Success!</strong > {{message }}
28
+ <strong >Success!</strong > {{successMessage }}
29
29
</div >
30
30
<div >
31
31
<!-- main view -->
@@ -65,7 +65,8 @@ export default {
65
65
return {
66
66
showError: false ,
67
67
showSuccess: false ,
68
- message: ' ' ,
68
+ errorMessage: ' ' ,
69
+ successMessage: ' ' ,
69
70
store: store
70
71
}
71
72
},
@@ -83,18 +84,18 @@ export default {
83
84
},
84
85
' error ' : function (message ) {
85
86
console .error (message)
86
- this .message = message
87
+ this .errorMessage = message
87
88
this .showError = true
88
89
},
89
90
' success ' : function (message ) {
90
91
console .info (message)
91
- this .message = message
92
+ this .successMessage = message
92
93
this .showSuccess = true
93
94
94
95
const that = this
95
96
setTimeout (function () {
96
97
that .showSuccess = false
97
- that .message = ' '
98
+ that .successMessage = ' '
98
99
},3000 )
99
100
}
100
101
}
You can’t perform that action at this time.
0 commit comments