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

@@ -61,10 +61,10 @@ export default {
this.$root.$confirm = this.open
},
methods: {
open (title, message, options) {
open (message, options) {
this.dialog = true
this.title = title
this.message = message
this.title = option.title || 'Confirm'
this.message = this.$t(message, options)
this.options = Object.assign(this.options, options)
return new Promise((resolve, reject) => {
this.resolve = resolve