diff --git a/pinry-spa/src/components/LoginForm.vue b/pinry-spa/src/components/LoginForm.vue index 6b57abd..ed3a2b2 100644 --- a/pinry-spa/src/components/LoginForm.vue +++ b/pinry-spa/src/components/LoginForm.vue @@ -68,6 +68,7 @@ export default { (user) => { self.$emit('login.succeed', user); self.$parent.close(); + window.location.reload(); }, (resp) => { self.helper.markFieldsAsDanger(resp.data); diff --git a/pinry-spa/src/components/Pins.vue b/pinry-spa/src/components/Pins.vue index 39a919a..41ee5d5 100644 --- a/pinry-spa/src/components/Pins.vue +++ b/pinry-spa/src/components/Pins.vue @@ -24,7 +24,7 @@ v-show="shouldShowEdit(item.id)" :pin="item" :currentUsername="editorMeta.user.meta.username" - :currentBoardId="editorMeta.currentBoard.id" + :currentBoard="editorMeta.currentBoard" v-on:pin-delete-succeed="reset" v-on:pin-remove-from-board-succeed="reset" > @@ -150,6 +150,9 @@ export default { }, methods: { shouldShowEdit(id) { + if (!this.editorMeta.user.loggedIn) { + return false; + } return this.editorMeta.currentEditId === id; }, showEditButtons(id) { diff --git a/pinry-spa/src/components/editors/PinEditorUI.vue b/pinry-spa/src/components/editors/PinEditorUI.vue index 6ac9664..05c1544 100644 --- a/pinry-spa/src/components/editors/PinEditorUI.vue +++ b/pinry-spa/src/components/editors/PinEditorUI.vue @@ -1,7 +1,7 @@