refactor review from claus-peter

This commit is contained in:
ogerly 2022-06-15 22:32:53 +02:00
parent e550d7ebbf
commit 5374b41905
5 changed files with 30 additions and 29 deletions

View File

@ -39,7 +39,7 @@ module.exports = {
{
src: './src',
extensions: ['.js', '.vue'],
ignores: ['contributionLink.options.maxPerCycle.null'],
ignores: [],
enableFix: false,
},
],

View File

@ -42,6 +42,7 @@
type="text"
placeholder="Name"
required
maxlength="80"
></b-form-input>
</b-form-group>
<!-- Desc -->
@ -51,6 +52,7 @@
size="lg"
:placeholder="$t('contributionLink.memo')"
required
maxlength="255"
></b-form-textarea>
</b-form-group>
<!-- Amount -->
@ -145,7 +147,6 @@ export default {
{ value: 'yearly', text: this.$t('contributionLink.options.cycle.yearly') },
],
maxPerCycle: [
{ value: null, text: this.$t('contributionLink.options.maxPerCycle.null') },
{ value: '1', text: '1 x' },
{ value: '2', text: '2 x' },
{ value: '3', text: '3 x' },

View File

@ -57,10 +57,10 @@ export default {
'name',
'memo',
'amount',
{ key: 'cycle', label: 'Zyklus' },
{ key: 'maxPerCycle', label: 'Wiederholung' },
{ key: 'validFrom', label: 'Start' },
{ key: 'validTo', label: 'Ende' },
{ key: 'cycle', label: this.$t('contributionLink.cycle') },
{ key: 'maxPerCycle', label: this.$t('contributionLink.maxPerCycle') },
{ key: 'validFrom', label: this.$t('contributionLink.validFrom') },
{ key: 'validTo', label: this.$t('contributionLink.validTo') },
'delete',
'edit',
'show',
@ -71,9 +71,7 @@ export default {
},
methods: {
deleteContributionLink() {
this.$bvModal
.msgBoxConfirm('Automatische Creations wirklich löschen?')
.then(async (value) => {
this.$bvModal.msgBoxConfirm(this.$t('contributionLink.deleteNow')).then(async (value) => {
if (value)
await this.$apollo
.mutate({

View File

@ -8,7 +8,7 @@
"create": "Anlegen",
"cycle": "Zyklus",
"maximumAmount": "maximaler Betrag",
"maxPerCycle": "Wiederholung",
"maxPerCycle": "Wiederholungen",
"memo": "Nachricht",
"name": "Name",
"newContributionLink": "Neuer Beitragslink",
@ -30,7 +30,8 @@
}
},
"validFrom": "Startdatum",
"validTo": "Enddatum"
"validTo": "Enddatum",
"deleteNow":"Automatische Creations wirklich löschen?"
},
"creation": "Schöpfung",
"creationList": "Schöpfungsliste",

View File

@ -12,7 +12,7 @@
"memo": "Memo",
"name": "Name",
"newContributionLink": "New contribution link",
"noContributionLinks": "No contribution links have been created.",
"noContributionLinks": "No contribution link has been created.",
"noDateSelected": "No date selected",
"noEndDate": "No end-date",
"noStartDate": "No start-date",
@ -21,7 +21,7 @@
"daily": "daily",
"hourly": "hourly",
"monthly": "monthly",
"once": "unique",
"once": "once",
"weekly": "weekly",
"yearly": "yearly"
},
@ -30,7 +30,8 @@
}
},
"validFrom": "Start-date",
"validTo": "End-Date"
"validTo": "End-Date",
"deleteNow":"Do you really delete automatic creations?"
},
"creation": "Creation",
"creationList": "Creation list",