diff --git a/pinry-spa/src/components/Pins.vue b/pinry-spa/src/components/Pins.vue index ebb71c2..fac5a69 100644 --- a/pinry-spa/src/components/Pins.vue +++ b/pinry-spa/src/components/Pins.vue @@ -260,7 +260,13 @@ export default { } else if (this.pinFilters.userFilter) { promise = API.fetchPins(this.status.offset, null, this.pinFilters.userFilter, null); } else if (this.pinFilters.boardFilter) { - promise = API.fetchPins(this.status.offset, null, null, this.pinFilters.boardFilter); + const prevPromise = API.Board.get(this.pinFilters.boardFilter); + promise = prevPromise.then( + (resp) => { + this.editorMeta.currentBoard = resp.data; + return API.fetchPins(this.status.offset, null, null, this.pinFilters.boardFilter); + }, + ); } else if (this.pinFilters.idFilter) { promise = API.fetchPin(this.pinFilters.idFilter); } else { diff --git a/pinry-spa/src/components/editors/PinEditorUI.vue b/pinry-spa/src/components/editors/PinEditorUI.vue index b8d7969..9c6a944 100644 --- a/pinry-spa/src/components/editors/PinEditorUI.vue +++ b/pinry-spa/src/components/editors/PinEditorUI.vue @@ -62,6 +62,7 @@ export default { return this.pin.author === this.currentUsername; }, inOwnedBoard() { + console.log(this.currentBoard, this.currentUsername); return ( Object.values(this.currentBoard).length !== 0 && this.currentBoard.submitter.username === this.currentUsername