mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-26 15:57:31 +00:00
Change logic so that deny is also integrated.
This commit is contained in:
parent
a584a69912
commit
df0a396a45
@ -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'
|
||||||
|
|||||||
@ -182,6 +182,8 @@ export const listContributions = gql`
|
|||||||
deletedAt
|
deletedAt
|
||||||
state
|
state
|
||||||
messagesCount
|
messagesCount
|
||||||
|
deniedAt
|
||||||
|
deniedBy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user