Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
popupAlerts () {
alertManager.success('The task was successfully completed!', 'Success', {
ok: () => {
this.$alert('This alert box will be closed after 3 seconds.')
return new Promise(resolve => {
setTimeout(() => {
resolve()
}, 3000)
})
}
})
alertManager.info('The task has been completed thirty percent.', 'Info')
alertManager.error('Something went wrong!', 'Error')
alertManager.warn('The name is invalid.', 'Warn')
},
popupConfirms () {
popupAlerts () {
alertManager.success('The task was successfully completed!', 'Success', {
ok: () => {
this.$alert('This alert box will be closed after 3 seconds.')
return new Promise(resolve => {
setTimeout(() => {
resolve()
}, 3000)
})
}
})
alertManager.info('The task has been completed thirty percent.', 'Info')
alertManager.error('Something went wrong!', 'Error')
alertManager.warn('The name is invalid.', 'Warn')
},
popupConfirms () {