mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-04 05:39:28 +00:00
accummulate multiple setFeedback calls in Form/Valdation
This commit is contained in:
@@ -23,7 +23,8 @@ export default {
|
||||
if (!Array.isArray(feedback))
|
||||
feedback = [feedback];
|
||||
const ts = Date.now();
|
||||
this.feedback[valid ? 'success' : 'danger'] = feedback.map(msg => [msg, ts]);
|
||||
this.feedback[valid ? 'success' : 'danger']
|
||||
.push(...feedback.map(msg => [msg, ts]));
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
Reference in New Issue
Block a user