diff --git a/pinry-spa/src/components/Pins.vue b/pinry-spa/src/components/Pins.vue
index b14187b..39a919a 100644
--- a/pinry-spa/src/components/Pins.vue
+++ b/pinry-spa/src/components/Pins.vue
@@ -26,6 +26,7 @@
:currentUsername="editorMeta.user.meta.username"
:currentBoardId="editorMeta.currentBoard.id"
v-on:pin-delete-succeed="reset"
+ v-on:pin-remove-from-board-succeed="reset"
>
-
+
{
+ API.Board.removeFromBoard(this.currentBoardId, [this.pin.id]).then(
+ () => {
+ this.$buefy.toast.open('Pin removed');
+ this.$emit('pin-remove-from-board-succeed', this.pin.id);
+ },
+ () => {
+ this.$buefy.toast.open(
+ { type: 'is-danger', message: 'Failed to Remove Pin' },
+ );
+ },
+ );
+ },
+ });
+ },
deletePin() {
this.$buefy.dialog.confirm({
message: 'Delete this Pin?',