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

View File

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