mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
some more fixes
This commit is contained in:
parent
4d69e39b57
commit
0df7b4e74f
@ -163,21 +163,18 @@ export default {
|
||||
this.$apollo
|
||||
.mutate({ mutation, variables })
|
||||
.then((result) => {
|
||||
this.$el.ownerDocument.defaultView.console.log('after calling mutation')
|
||||
if (
|
||||
this.hideResubmission &&
|
||||
this.showResubmissionDate &&
|
||||
this.combineResubmissionDateAndTime() > new Date()
|
||||
) {
|
||||
this.$el.ownerDocument.defaultView.console.log('before update-contributions')
|
||||
this.$emit('update-contributions')
|
||||
} else {
|
||||
this.$emit('update-status', this.contributionId)
|
||||
if (this.tabindex === 2) {
|
||||
this.$emit('reload-contribution', this.contributionId)
|
||||
} else {
|
||||
this.$emit('get-list-contribution-messages', this.contributionId)
|
||||
}
|
||||
}
|
||||
this.onReset()
|
||||
this.$el.ownerDocument.defaultView.console.log('before reload contribution')
|
||||
this.$emit('reload-contribution', this.contributionId)
|
||||
}
|
||||
this.toastSuccess(this.$t('message.request'))
|
||||
this.loading = false
|
||||
})
|
||||
|
||||
@ -142,6 +142,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
reloadContribution(id) {
|
||||
console.log('reload contribution with id: %d', id)
|
||||
this.$apollo
|
||||
.query({ query: getContribution, variables: { id } })
|
||||
.then((result) => {
|
||||
|
||||
@ -148,13 +148,14 @@ export class ContributionMessageResolver {
|
||||
async (transactionalEntityManager: EntityManager) => {
|
||||
const { contribution, contributionMessage, contributionChanged } =
|
||||
await updateUnconfirmedContributionContext.run(transactionalEntityManager, relations)
|
||||
|
||||
console.log('contribution changed: %d', contributionChanged)
|
||||
if (contributionChanged) {
|
||||
await transactionalEntityManager.update(
|
||||
Contribution,
|
||||
DbContribution,
|
||||
{ id: contributionId },
|
||||
contribution,
|
||||
)
|
||||
console.log('new contribution resubmission at: %s, status: %s', contribution.resubmissionAt, contribution.contributionStatus)
|
||||
}
|
||||
if (contributionMessage) {
|
||||
await transactionalEntityManager.insert(DbContributionMessage, contributionMessage)
|
||||
|
||||
@ -29,8 +29,10 @@ export class UnconfirmedContributionAdminAddMessageRole extends AbstractUnconfir
|
||||
) {
|
||||
this.self.contributionStatus = newStatus
|
||||
this.self.resubmissionAt = resubmissionDate
|
||||
console.log('update, change status and/or resubmissionAt')
|
||||
} else {
|
||||
this.changed = false
|
||||
console.log('no changes, resubmission date: %s', resubmissionDate?.toString())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user