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 --- docs/.vuepress/enhanceApp.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'docs/.vuepress/enhanceApp.js') diff --git a/docs/.vuepress/enhanceApp.js b/docs/.vuepress/enhanceApp.js index 59c1f925..799cf208 100644 --- a/docs/.vuepress/enhanceApp.js +++ b/docs/.vuepress/enhanceApp.js @@ -1,10 +1,19 @@ +// OpenBMC Imports import "../../src/assets/styles/_obmc-custom.scss"; +import BVToastMixin from "../../src/components/Mixins/BVToastMixin"; + +// Bootstrap-vue Plugin imports import { - ButtonPlugin + ButtonPlugin, + ToastPlugin } from 'bootstrap-vue'; export default ({ Vue }) => { Vue.use(ButtonPlugin); + Vue.use(ToastPlugin); + + // BMC Components and Mixins + Vue.mixin('BVToastMixin', BVToastMixin); } \ No newline at end of file -- cgit v1.2.3