diff --git a/frontend/src/components/Contributions/ContributionListItem.spec.js b/frontend/src/components/Contributions/ContributionListItem.spec.js index 86b0efa31..3415ee5d3 100644 --- a/frontend/src/components/Contributions/ContributionListItem.spec.js +++ b/frontend/src/components/Contributions/ContributionListItem.spec.js @@ -48,7 +48,7 @@ describe('ContributionListItem', () => { it('is x-circle when deletedAt is present', async () => { await wrapper.setProps({ deletedAt: new Date().toISOString() }) - expect(wrapper.vm.icon).toBe('x-circle') + expect(wrapper.vm.icon).toBe('trash') }) it('is check when confirmedAt is present', async () => { diff --git a/frontend/src/components/Contributions/ContributionListItem.vue b/frontend/src/components/Contributions/ContributionListItem.vue index d46b79c52..1f35097ef 100644 --- a/frontend/src/components/Contributions/ContributionListItem.vue +++ b/frontend/src/components/Contributions/ContributionListItem.vue @@ -30,7 +30,10 @@
{{ $t('creation') }} {{ $t('(') }}{{ amount / 20 }} {{ $t('h') }}{{ $t(')') }}
-
{{ amount | GDD }}
+
+ {{ $t('contribution.deleted') }} +
+
{{ amount | GDD }}
@@ -168,7 +171,7 @@ export default { }, computed: { icon() { - if (this.deletedAt) return 'x-circle' + if (this.deletedAt) return 'trash' if (this.confirmedAt) return 'check' if (this.state === 'IN_PROGRESS') return 'question-circle' return 'bell-fill' diff --git a/frontend/src/components/Template/RightSide/ContributionInfo.vue b/frontend/src/components/Template/RightSide/ContributionInfo.vue index 68cf65867..f6f218ecb 100644 --- a/frontend/src/components/Template/RightSide/ContributionInfo.vue +++ b/frontend/src/components/Template/RightSide/ContributionInfo.vue @@ -22,6 +22,10 @@ {{ $t('contribution.alert.rejected') }} +
  • + + {{ $t('contribution.alert.deleted') }} +
  • diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index c955be93a..5c0ee9f96 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -40,6 +40,7 @@ "answerQuestion": "Bitte beantworte die Rückfrage!", "communityNoteList": "Hier findest du alle eingereichten und bestätigten Beiträge von allen Mitgliedern aus dieser Gemeinschaft.", "confirm": "bestätigt", + "deleted": "gelöscht", "in_progress": "Es gibt eine Rückfrage der Moderatoren.", "myContributionNoteList": "Eingereichte Beiträge, die noch nicht bestätigt wurden, kannst du jederzeit bearbeiten oder löschen.", "pending": "Eingereicht und wartet auf Bestätigung", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 3528470fb..7a210f6a0 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -40,6 +40,7 @@ "answerQuestion": "Please answer the question", "communityNoteList": "Here you will find all submitted and confirmed contributions from all members of this community.", "confirm": "confirmed", + "deleted": "deleted", "in_progress": "There is a question from the moderators.", "myContributionNoteList": "You can edit or delete entries that have not yet been confirmed at any time.", "pending": "Submitted and waiting for confirmation",