Change logic so that deny is also integrated.

This commit is contained in:
elweyn 2022-12-22 10:01:48 +01:00
parent a584a69912
commit df0a396a45
2 changed files with 12 additions and 0 deletions

View File

@ -130,6 +130,14 @@ export default {
type: String,
required: false,
},
deniedBy: {
type: Number,
required: false,
},
deniedAt: {
type: String,
required: false,
},
state: {
type: String,
required: false,
@ -157,11 +165,13 @@ export default {
computed: {
icon() {
if (this.deletedAt) return 'x-circle'
if (this.deniedAt) return 'x-circle'
if (this.confirmedAt) return 'check'
return 'bell-fill'
},
variant() {
if (this.deletedAt) return 'danger'
if (this.deniedAt) return 'danger'
if (this.confirmedAt) return 'success'
if (this.state === 'IN_PROGRESS') return 'warning'
return 'primary'

View File

@ -182,6 +182,8 @@ export const listContributions = gql`
deletedAt
state
messagesCount
deniedAt
deniedBy
}
}
}