From 4e90eed0a2b03b675f93bd3e731cb72101266c47 Mon Sep 17 00:00:00 2001 From: Derick Montague Date: Tue, 3 Mar 2020 18:11:44 -0600 Subject: Add toast component documentation - Add documentation that describes when and how to use a toast message with code snippets - Add an informational toast method in the BVToastMixin - Add BVToastMixin to enhaceApp to register mixin globally. Signed-off-by: Derick Montague Change-Id: I89bf2aa8b3fdb9294354a80c98ccf692b6e3615a --- src/components/Mixins/BVToastMixin.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/components/Mixins/BVToastMixin.js') diff --git a/src/components/Mixins/BVToastMixin.js b/src/components/Mixins/BVToastMixin.js index 4fedc9a4..538bb93c 100644 --- a/src/components/Mixins/BVToastMixin.js +++ b/src/components/Mixins/BVToastMixin.js @@ -28,6 +28,15 @@ const BVToastMixin = { isStatus: true, solid: true }); + }, + infoToast(message, title = i18n.t('global.status.informational')) { + this.$root.$bvToast.toast(message, { + title, + variant: 'info', + noAutoHide: true, + isStatus: true, + solid: true + }); } } }; -- cgit v1.2.3