mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Add moderatorId for contribution object.
This commit is contained in:
parent
fe560ff319
commit
2146c98ee4
@ -27,9 +27,10 @@
|
|||||||
<template #cell(editCreation)="row">
|
<template #cell(editCreation)="row">
|
||||||
<div v-if="!myself(row.item)">
|
<div v-if="!myself(row.item)">
|
||||||
<b-button
|
<b-button
|
||||||
v-if="row.item.moderator"
|
v-if="row.item.moderatorId"
|
||||||
variant="info"
|
variant="info"
|
||||||
size="md"
|
size="md"
|
||||||
|
:index="0"
|
||||||
@click="rowToggleDetails(row, 0)"
|
@click="rowToggleDetails(row, 0)"
|
||||||
class="mr-2"
|
class="mr-2"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -30,6 +30,7 @@ export const adminListAllContributions = gql`
|
|||||||
deniedBy
|
deniedBy
|
||||||
deletedAt
|
deletedAt
|
||||||
deletedBy
|
deletedBy
|
||||||
|
moderatorId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,6 +21,7 @@ export class Contribution {
|
|||||||
this.deniedBy = contribution.deniedBy
|
this.deniedBy = contribution.deniedBy
|
||||||
this.deletedAt = contribution.deletedAt
|
this.deletedAt = contribution.deletedAt
|
||||||
this.deletedBy = contribution.deletedBy
|
this.deletedBy = contribution.deletedBy
|
||||||
|
this.moderatorId = contribution.moderatorId
|
||||||
}
|
}
|
||||||
|
|
||||||
@Field(() => Number)
|
@Field(() => Number)
|
||||||
@ -67,6 +68,9 @@ export class Contribution {
|
|||||||
|
|
||||||
@Field(() => String)
|
@Field(() => String)
|
||||||
state: string
|
state: string
|
||||||
|
|
||||||
|
@Field(() => Number, { nullable: true })
|
||||||
|
moderatorId: number | null
|
||||||
}
|
}
|
||||||
|
|
||||||
@ObjectType()
|
@ObjectType()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user