summaryrefslogtreecommitdiff
path: root/src/components/AppHeader/AppHeader.vue
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2021-02-09 23:41:53 +0300
committerYoshie Muranaka <yoshiemuranaka@gmail.com>2021-02-16 20:31:36 +0300
commitf92e29696d0f01c7fa1941829cb131a708f88393 (patch)
tree3347cb1a5c22cd1686744481fb2e2e15c61a560a /src/components/AppHeader/AppHeader.vue
parent6f71284973ee2f0b35fb22fa36a1afa883a0cc7a (diff)
downloadwebui-vue-f92e29696d0f01c7fa1941829cb131a708f88393.tar.xz
Add enhancements to BVToastMixin
Adds ability to create toasts with multi-lined body content and options to include a timestamp and application refresh action. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I30b1da04a0e0b5f29a419950462d1ca35e207552
Diffstat (limited to 'src/components/AppHeader/AppHeader.vue')
-rw-r--r--src/components/AppHeader/AppHeader.vue7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/AppHeader/AppHeader.vue b/src/components/AppHeader/AppHeader.vue
index 5b36cf85..7e1a1006 100644
--- a/src/components/AppHeader/AppHeader.vue
+++ b/src/components/AppHeader/AppHeader.vue
@@ -172,10 +172,9 @@ export default {
watch: {
isAuthorized(value) {
if (value === false) {
- this.errorToast(
- this.$t('global.toast.unAuthDescription'),
- this.$t('global.toast.unAuthTitle')
- );
+ this.errorToast(this.$t('global.toast.unAuthDescription'), {
+ title: this.$t('global.toast.unAuthTitle'),
+ });
}
},
},