mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Merge branch 'master' into insert-missing-contributions-migration
This commit is contained in:
commit
99c194ec81
@ -25,7 +25,10 @@
|
|||||||
reset-value=""
|
reset-value=""
|
||||||
:label-no-date-selected="$t('contribution.noDateSelected')"
|
:label-no-date-selected="$t('contribution.noDateSelected')"
|
||||||
required
|
required
|
||||||
></b-form-datepicker>
|
>
|
||||||
|
<template #nav-prev-year><span></span></template>
|
||||||
|
<template #nav-next-year><span></span></template>
|
||||||
|
</b-form-datepicker>
|
||||||
<validation-provider
|
<validation-provider
|
||||||
:rules="{
|
:rules="{
|
||||||
required: true,
|
required: true,
|
||||||
|
|||||||
@ -13,6 +13,7 @@ describe('ContributionListItem', () => {
|
|||||||
|
|
||||||
const propsData = {
|
const propsData = {
|
||||||
id: 1,
|
id: 1,
|
||||||
|
createdAt: '26/07/2022',
|
||||||
contributionDate: '07/06/2022',
|
contributionDate: '07/06/2022',
|
||||||
memo: 'Ich habe 10 Stunden die Elbwiesen von Müll befreit.',
|
memo: 'Ich habe 10 Stunden die Elbwiesen von Müll befreit.',
|
||||||
amount: '200',
|
amount: '200',
|
||||||
@ -84,21 +85,9 @@ describe('ContributionListItem', () => {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('contribution date', () => {
|
describe('date', () => {
|
||||||
it('is contributionDate by default', () => {
|
it('is equal to createdAt', () => {
|
||||||
expect(wrapper.vm.date).toBe(wrapper.vm.contributionDate)
|
expect(wrapper.vm.date).toBe(wrapper.vm.createdAt)
|
||||||
})
|
|
||||||
|
|
||||||
it('is deletedAt when deletedAt is present', async () => {
|
|
||||||
const now = new Date().toISOString()
|
|
||||||
await wrapper.setProps({ deletedAt: now })
|
|
||||||
expect(wrapper.vm.date).toBe(now)
|
|
||||||
})
|
|
||||||
|
|
||||||
it('is confirmedAt at when confirmedAt is present', async () => {
|
|
||||||
const now = new Date().toISOString()
|
|
||||||
await wrapper.setProps({ confirmedAt: now })
|
|
||||||
expect(wrapper.vm.date).toBe(now)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,12 @@
|
|||||||
{{ $t('math.minus') }}
|
{{ $t('math.minus') }}
|
||||||
<div class="mx-2">{{ $d(new Date(date), 'short') }}</div>
|
<div class="mx-2">{{ $d(new Date(date), 'short') }}</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="mr-2">
|
||||||
|
<span>{{ $t('contribution.date') }}</span>
|
||||||
|
<span>
|
||||||
|
{{ $d(new Date(contributionDate), 'monthAndYear') }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<div class="mr-2">{{ memo }}</div>
|
<div class="mr-2">{{ memo }}</div>
|
||||||
<div v-if="type === 'pending' && !firstName" class="d-flex flex-row-reverse">
|
<div v-if="type === 'pending' && !firstName" class="d-flex flex-row-reverse">
|
||||||
<div
|
<div
|
||||||
@ -91,9 +97,10 @@ export default {
|
|||||||
return 'primary'
|
return 'primary'
|
||||||
},
|
},
|
||||||
date() {
|
date() {
|
||||||
if (this.deletedAt) return this.deletedAt
|
// if (this.deletedAt) return this.deletedAt
|
||||||
if (this.confirmedAt) return this.confirmedAt
|
// if (this.confirmedAt) return this.confirmedAt
|
||||||
return this.contributionDate
|
// return this.contributionDate
|
||||||
|
return this.createdAt
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
"community": "Gemeinschaft",
|
"community": "Gemeinschaft",
|
||||||
"continue-to-registration": "Weiter zur Registrierung",
|
"continue-to-registration": "Weiter zur Registrierung",
|
||||||
"current-community": "Aktuelle Gemeinschaft",
|
"current-community": "Aktuelle Gemeinschaft",
|
||||||
"myContributions": "Meine Beiträge",
|
"myContributions": "Meine Beiträge zum Gemeinwohl",
|
||||||
"other-communities": "Weitere Gemeinschaften",
|
"other-communities": "Weitere Gemeinschaften",
|
||||||
"submitContribution": "Beitrag einreichen",
|
"submitContribution": "Beitrag einreichen",
|
||||||
"switch-to-this-community": "zu dieser Gemeinschaft wechseln"
|
"switch-to-this-community": "zu dieser Gemeinschaft wechseln"
|
||||||
@ -36,11 +36,12 @@
|
|||||||
"alert": {
|
"alert": {
|
||||||
"communityNoteList": "Hier findest du alle eingereichten und bestätigten Beiträge von allen Mitgliedern aus dieser Gemeinschaft.",
|
"communityNoteList": "Hier findest du alle eingereichten und bestätigten Beiträge von allen Mitgliedern aus dieser Gemeinschaft.",
|
||||||
"confirm": "bestätigt",
|
"confirm": "bestätigt",
|
||||||
"myContributionNoteList": "Hier findest du chronologisch aufgelistet alle deine eingereichten Beiträge. Es gibt drei Darstellungsarten. Du kannst deine Beiträge, welche noch nicht bestätigt wurden, jederzeit bearbeiten.",
|
"myContributionNoteList": "Eingereichte Beiträge, die noch nicht bestätigt wurden, kannst du jederzeit bearbeiten oder löschen.",
|
||||||
"myContributionNoteSupport": "Es wird bald an dieser Stelle die Möglichkeit geben das ein Dialog zwischen Moderatoren und dir stattfinden kann. Solltest du jetzt Probleme haben bitte nimm Kontakt mit dem Support auf.",
|
"myContributionNoteSupport": "Es wird bald an dieser Stelle die Möglichkeit geben das ein Dialog zwischen Moderatoren und dir stattfinden kann. Solltest du jetzt Probleme haben bitte nimm Kontakt mit dem Support auf.",
|
||||||
"pending": "Eingereicht und wartet auf Bestätigung",
|
"pending": "Eingereicht und wartet auf Bestätigung",
|
||||||
"rejected": "abgelehnt"
|
"rejected": "abgelehnt"
|
||||||
},
|
},
|
||||||
|
"date": "Beitrag für:",
|
||||||
"delete": "Beitrag löschen! Bist du sicher?",
|
"delete": "Beitrag löschen! Bist du sicher?",
|
||||||
"deleted": "Der Beitrag wurde gelöscht! Wird aber sichtbar bleiben.",
|
"deleted": "Der Beitrag wurde gelöscht! Wird aber sichtbar bleiben.",
|
||||||
"formText": {
|
"formText": {
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
"community": "Community",
|
"community": "Community",
|
||||||
"continue-to-registration": "Continue to registration",
|
"continue-to-registration": "Continue to registration",
|
||||||
"current-community": "Current community",
|
"current-community": "Current community",
|
||||||
"myContributions": "My contributions",
|
"myContributions": "My contributions to the common good",
|
||||||
"other-communities": "Other communities",
|
"other-communities": "Other communities",
|
||||||
"submitContribution": "Submit contribution",
|
"submitContribution": "Submit contribution",
|
||||||
"switch-to-this-community": "Switch to this community"
|
"switch-to-this-community": "Switch to this community"
|
||||||
@ -36,11 +36,12 @@
|
|||||||
"alert": {
|
"alert": {
|
||||||
"communityNoteList": "Here you will find all submitted and confirmed contributions from all members of this community.",
|
"communityNoteList": "Here you will find all submitted and confirmed contributions from all members of this community.",
|
||||||
"confirm": "confirmed",
|
"confirm": "confirmed",
|
||||||
"myContributionNoteList": "Here you will find a chronological list of all your submitted contributions. There are three display types. There are three ways of displaying your posts. You can edit your contributions, which have not yet been confirmed, at any time.",
|
"myContributionNoteList": "You can edit or delete entries that have not yet been confirmed at any time.",
|
||||||
"myContributionNoteSupport": "Soon there will be the possibility for a dialogue between moderators and you. If you have any problems now, please contact the support.",
|
"myContributionNoteSupport": "Soon there will be the possibility for a dialogue between moderators and you. If you have any problems now, please contact the support.",
|
||||||
"pending": "Submitted and waiting for confirmation",
|
"pending": "Submitted and waiting for confirmation",
|
||||||
"rejected": "deleted"
|
"rejected": "deleted"
|
||||||
},
|
},
|
||||||
|
"date": "Contribution for:",
|
||||||
"delete": "Delete Contribution! Are you sure?",
|
"delete": "Delete Contribution! Are you sure?",
|
||||||
"deleted": "The contribution has been deleted! But it will remain visible.",
|
"deleted": "The contribution has been deleted! But it will remain visible.",
|
||||||
"formText": {
|
"formText": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user