Change SweetAlert2 type in plugin update alert

This commit is contained in:
Pig Fang 2018-08-21 11:06:41 +08:00
parent 5a2c010f3b
commit 9b3eff0f3a

View File

@ -156,7 +156,7 @@ export default {
async updatePlugin(plugin) { async updatePlugin(plugin) {
const { dismiss } = await swal({ const { dismiss } = await swal({
text: this.$t('admin.confirmUpdate', { plugin: plugin.title, old: plugin.installed, new: plugin.version }), text: this.$t('admin.confirmUpdate', { plugin: plugin.title, old: plugin.installed, new: plugin.version }),
type: 'warning', type: 'question',
showCancelButton: true showCancelButton: true
}); });
if (dismiss) { if (dismiss) {