From f4076e681332402dc9c3135885aa9fd7cbfaeb2f Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 8 Jul 2021 12:05:18 +0200 Subject: [PATCH] add close button to toasts --- frontend/src/plugins/dashboard-plugin.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/plugins/dashboard-plugin.js b/frontend/src/plugins/dashboard-plugin.js index c71b3742b..b32bb20cd 100755 --- a/frontend/src/plugins/dashboard-plugin.js +++ b/frontend/src/plugins/dashboard-plugin.js @@ -40,8 +40,14 @@ export default { Vue.use(Loading) Vue.use(Toasted, { position: 'top-center', - duration: 2500, + duration: 5000, fullWidth: true, + action: { + text: 'x', + onClick: (e, toastObject) => { + toastObject.goAway(0) + }, + }, }) }, }