Add moderatorId for contribution object.

This commit is contained in:
elweyn 2023-03-09 20:42:07 +01:00
parent fe560ff319
commit 2146c98ee4
3 changed files with 7 additions and 1 deletions

View File

@ -27,9 +27,10 @@
<template #cell(editCreation)="row">
<div v-if="!myself(row.item)">
<b-button
v-if="row.item.moderator"
v-if="row.item.moderatorId"
variant="info"
size="md"
:index="0"
@click="rowToggleDetails(row, 0)"
class="mr-2"
>

View File

@ -30,6 +30,7 @@ export const adminListAllContributions = gql`
deniedBy
deletedAt
deletedBy
moderatorId
}
}
}

View File

@ -21,6 +21,7 @@ export class Contribution {
this.deniedBy = contribution.deniedBy
this.deletedAt = contribution.deletedAt
this.deletedBy = contribution.deletedBy
this.moderatorId = contribution.moderatorId
}
@Field(() => Number)
@ -67,6 +68,9 @@ export class Contribution {
@Field(() => String)
state: string
@Field(() => Number, { nullable: true })
moderatorId: number | null
}
@ObjectType()