From 83413d47f68177992c39fef6e2cd1b371d732b42 Mon Sep 17 00:00:00 2001 From: winkidney Date: Sat, 7 Dec 2019 14:24:12 +0800 Subject: [PATCH] Refactor: Add is-danger for failure toast --- pinry-spa/src/components/editors/BoardEditUI.vue | 4 +++- pinry-spa/src/components/editors/PinEditorUI.vue | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pinry-spa/src/components/editors/BoardEditUI.vue b/pinry-spa/src/components/editors/BoardEditUI.vue index 69a6b76..134da48 100644 --- a/pinry-spa/src/components/editors/BoardEditUI.vue +++ b/pinry-spa/src/components/editors/BoardEditUI.vue @@ -43,7 +43,9 @@ export default { this.$emit('board-delete-succeed', this.board.id); }, () => { - this.$buefy.toast.open('Failed to delete Board'); + this.$buefy.toast.open( + { type: 'is-danger', message: 'Failed to delete Board' }, + ); }, ); }, diff --git a/pinry-spa/src/components/editors/PinEditorUI.vue b/pinry-spa/src/components/editors/PinEditorUI.vue index 9783a62..47fb945 100644 --- a/pinry-spa/src/components/editors/PinEditorUI.vue +++ b/pinry-spa/src/components/editors/PinEditorUI.vue @@ -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' }, + ); }, ); },