mirror of
https://github.com/pinry/pinry.git
synced 2026-05-07 16:36:30 +02:00
fix: #342
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user