mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
resolve conflict
This commit is contained in:
parent
5719884461
commit
539f858dec
@ -57,10 +57,8 @@ export default {
|
|||||||
updateContributionForm(item) {
|
updateContributionForm(item) {
|
||||||
this.$emit('update-contribution-form', item)
|
this.$emit('update-contribution-form', item)
|
||||||
},
|
},
|
||||||
deleteContribution(id) {
|
deleteContribution(item) {
|
||||||
this.$emit('delete-contribution', {
|
this.$emit('delete-contribution', item)
|
||||||
id: id,
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@ -26,7 +26,14 @@
|
|||||||
>
|
>
|
||||||
<b-icon icon="pencil" class="h2"></b-icon>
|
<b-icon icon="pencil" class="h2"></b-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="pointer" @click="deleteContribution(id)">
|
<div
|
||||||
|
class="pointer"
|
||||||
|
@click="
|
||||||
|
$emit('delete-contribution', {
|
||||||
|
id: id,
|
||||||
|
})
|
||||||
|
"
|
||||||
|
>
|
||||||
<b-icon icon="trash" class="h2"></b-icon>
|
<b-icon icon="trash" class="h2"></b-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -96,7 +103,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
deleteContribution(id) {
|
deleteContribution(id) {
|
||||||
this.boxOne = ''
|
this.boxOne = ''
|
||||||
this.$bvModal.msgBoxConfirm('Delete Contribution! Are you sure?').then((value) => {
|
this.$bvModal.msgBoxConfirm(this.$t('contribution.delete')).then((value) => {
|
||||||
this.$emit('delete-contribution', {
|
this.$emit('delete-contribution', {
|
||||||
id: id,
|
id: id,
|
||||||
})
|
})
|
||||||
|
|||||||
@ -33,6 +33,8 @@
|
|||||||
},
|
},
|
||||||
"contribution": {
|
"contribution": {
|
||||||
"activity": "Tätigkeit",
|
"activity": "Tätigkeit",
|
||||||
|
"delete": "Beitrag löschen! Bist du sicher?",
|
||||||
|
"deleted": "Der Beitrag wurde gelöscht! Wird aber sichtbar bleiben.",
|
||||||
"formText": {
|
"formText": {
|
||||||
"h3": "Dein Beitrag zum Gemeinwohl",
|
"h3": "Dein Beitrag zum Gemeinwohl",
|
||||||
"maxGDDforMonth": "Du kannst für den ausgewählten Monat nur noch maximal {amount} GDD einreichen.",
|
"maxGDDforMonth": "Du kannst für den ausgewählten Monat nur noch maximal {amount} GDD einreichen.",
|
||||||
@ -41,7 +43,9 @@
|
|||||||
"text2": "Beschreibe deine Gemeinwohl-Tätigkeit mit Angabe der Stunden und trage einen Betrag von 20 GDD pro Stunde ein! Nach Bestätigung durch einen Moderator wird der Betrag deinem Konto gutgeschrieben."
|
"text2": "Beschreibe deine Gemeinwohl-Tätigkeit mit Angabe der Stunden und trage einen Betrag von 20 GDD pro Stunde ein! Nach Bestätigung durch einen Moderator wird der Betrag deinem Konto gutgeschrieben."
|
||||||
},
|
},
|
||||||
"noDateSelected": "Kein Datum ausgewählt",
|
"noDateSelected": "Kein Datum ausgewählt",
|
||||||
"submit": "Einreichen"
|
"submit": "Einreichen",
|
||||||
|
"submitted":"Der Beitrag wurde eingereicht.",
|
||||||
|
"updated":"Der Beitrag wurde geändert."
|
||||||
},
|
},
|
||||||
"contribution-link": {
|
"contribution-link": {
|
||||||
"thanksYouWith": "dankt dir mit"
|
"thanksYouWith": "dankt dir mit"
|
||||||
|
|||||||
@ -33,6 +33,8 @@
|
|||||||
},
|
},
|
||||||
"contribution": {
|
"contribution": {
|
||||||
"activity": "Activity",
|
"activity": "Activity",
|
||||||
|
"delete": "Delete Contribution! Are you sure?",
|
||||||
|
"deleted": "The contribution has been deleted! But it will remain visible.",
|
||||||
"formText": {
|
"formText": {
|
||||||
"h3": "Your contribution to the common good",
|
"h3": "Your contribution to the common good",
|
||||||
"maxGDDforMonth": "You can only submit a maximum of {amount} GDD for the selected month.",
|
"maxGDDforMonth": "You can only submit a maximum of {amount} GDD for the selected month.",
|
||||||
@ -41,7 +43,9 @@
|
|||||||
"text2": "Describe your community service activity with hours and enter an amount of 20 GDD per hour! After confirmation by a moderator, the amount will be credited to your account."
|
"text2": "Describe your community service activity with hours and enter an amount of 20 GDD per hour! After confirmation by a moderator, the amount will be credited to your account."
|
||||||
},
|
},
|
||||||
"noDateSelected": "No date selected",
|
"noDateSelected": "No date selected",
|
||||||
"submit": "Submit"
|
"submit": "Submit",
|
||||||
|
"submitted":"The contribution was submitted.",
|
||||||
|
"updated":"The contribution was changed."
|
||||||
},
|
},
|
||||||
"contribution-link": {
|
"contribution-link": {
|
||||||
"thanksYouWith": "thanks you with"
|
"thanksYouWith": "thanks you with"
|
||||||
|
|||||||
@ -77,7 +77,7 @@ export default {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
this.toastSuccess(result.data)
|
this.toastSuccess(this.$t('contribution.submitted'))
|
||||||
this.updateListContributions({
|
this.updateListContributions({
|
||||||
currentPage: this.currentPage,
|
currentPage: this.currentPage,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
@ -101,7 +101,7 @@ export default {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
this.toastSuccess(result.data)
|
this.toastSuccess(this.$t('contribution.updated'))
|
||||||
this.updateListContributions({
|
this.updateListContributions({
|
||||||
currentPage: this.currentPage,
|
currentPage: this.currentPage,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
@ -112,18 +112,17 @@ export default {
|
|||||||
this.toastError(err.message)
|
this.toastError(err.message)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
deleteContribution(id) {
|
deleteContribution(data) {
|
||||||
this.$apollo
|
this.$apollo
|
||||||
.mutate({
|
.mutate({
|
||||||
fetchPolicy: 'no-cache',
|
fetchPolicy: 'no-cache',
|
||||||
mutation: deleteContribution,
|
mutation: deleteContribution,
|
||||||
variables: {
|
variables: {
|
||||||
id: id,
|
id: data.id,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
// console.log('result', result.data)
|
this.toastSuccess(this.$t('contribution.deleted'))
|
||||||
this.toastSuccess(result.data)
|
|
||||||
this.updateListContributions({
|
this.updateListContributions({
|
||||||
currentPage: this.currentPage,
|
currentPage: this.currentPage,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user