cleaning message/confirm usage

This commit is contained in:
les
2020-10-07 11:12:13 +02:00
parent a67751928c
commit 3616eeefe5
20 changed files with 53 additions and 287 deletions

View File

@@ -29,10 +29,11 @@ export default {
}
},
created () {
this.$root.$message = snackbar => {
this.$root.$message = (message, opts) => {
this.active = true
this.message = snackbar.message
this.color = snackbar.color || 'primary'
this.message = this.$t(message, opts)
this.color = opts.color || 'primary'
this.icon = opts.icon || 'md-alert'
}
}
}