Refactor: Add is-danger for failure toast

This commit is contained in:
winkidney
2019-12-07 14:24:12 +08:00
committed by Isaac Bythewood
parent e455821ac6
commit 83413d47f6
2 changed files with 6 additions and 2 deletions

View File

@@ -50,7 +50,9 @@ export default {
this.$emit('pin-delete-succeed', this.pin.id);
},
() => {
this.$buefy.toast.open('Failed to delete Pin');
this.$buefy.toast.open(
{ type: 'is-danger', message: 'Failed to delete Pin' },
);
},
);
},