Skip to content

Commit

Permalink
feat: configure nuxt toast
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed May 5, 2022
1 parent 1acaa5e commit 4be2078
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ export default {
'@nuxtjs/pwa',
'@nuxtjs/sentry',
'@nuxtjs/sitemap',
'@nuxtjs/toast'
],

axios: {
Expand Down Expand Up @@ -295,6 +296,27 @@ export default {
],
},

toast: {
position: 'top-right',

duration: 5000,

keepOnHover: true,

action: {
text: 'Close',


onClick: (e, toastObject) => {
toastObject.goAway(0);
}
},


closeOnSwipe: true,
},


build: {
extractCSS: true,
},
Expand Down

0 comments on commit 4be2078

Please sign in to comment.