From 5f86239f2c49c9f279c375728012de66cc53c726 Mon Sep 17 00:00:00 2001 From: les Date: Wed, 7 Oct 2020 13:03:01 +0200 Subject: [PATCH] minor --- components/Confirm.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/Confirm.vue b/components/Confirm.vue index 4bbc9c73..18702406 100644 --- a/components/Confirm.vue +++ b/components/Confirm.vue @@ -6,7 +6,7 @@ :max-width='options.width' :style="{ zIndex: options.zIndex, position: 'absolute' }" @keydown.esc='cancel') - v-card + v-card(color='secondary') v-card-title {{ title }} v-card-text(v-show='!!message') {{ message }} v-card-actions @@ -61,9 +61,9 @@ export default { this.$root.$confirm = this.open }, methods: { - open (message, options) { + open (message, options = {}) { this.dialog = true - this.title = option.title || 'Confirm' + this.title = options.title || 'Confirm' this.message = this.$t(message, options) this.options = Object.assign(this.options, options) return new Promise((resolve, reject) => {