mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
change form and cycle values
This commit is contained in:
parent
46bbe625a2
commit
6f6d801fb6
@ -72,6 +72,7 @@
|
||||
<b-form-select
|
||||
v-model="form.cycle"
|
||||
:options="cycle"
|
||||
:disabled="disabled"
|
||||
class="mb-3"
|
||||
size="lg"
|
||||
></b-form-select>
|
||||
@ -82,6 +83,7 @@
|
||||
<b-form-select
|
||||
v-model="form.repetition"
|
||||
:options="repetition"
|
||||
:disabled="disabled"
|
||||
class="mb-3"
|
||||
size="lg"
|
||||
></b-form-select>
|
||||
@ -93,6 +95,7 @@
|
||||
<b-form-input
|
||||
v-model="form.maxAmount"
|
||||
size="lg"
|
||||
:disabled="disabled"
|
||||
type="number"
|
||||
placeholder="0"
|
||||
></b-form-input>
|
||||
@ -109,6 +112,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import { createContributionLink } from '@/graphql/createContributionLink.js'
|
||||
import { throwServerError } from 'apollo-link-http-common'
|
||||
export default {
|
||||
name: 'ContributionLinkForm',
|
||||
props: {
|
||||
@ -127,13 +131,13 @@ export default {
|
||||
amount: null,
|
||||
startDate: null,
|
||||
endDate: null,
|
||||
cycle: null,
|
||||
cycle: 'once',
|
||||
repetition: null,
|
||||
maxAmount: null,
|
||||
},
|
||||
min: new Date(),
|
||||
cycle: [
|
||||
{ value: null, text: this.$t('contributionLink.options.cycle.null') },
|
||||
{ value: 'once', text: this.$t('contributionLink.options.cycle.once') },
|
||||
{ value: 'hourly', text: this.$t('contributionLink.options.cycle.hourly') },
|
||||
{ value: 'daily', text: this.$t('contributionLink.options.cycle.daily') },
|
||||
{ value: 'weekly', text: this.$t('contributionLink.options.cycle.weekly') },
|
||||
@ -188,6 +192,10 @@ export default {
|
||||
updateData() {
|
||||
return this.contributionLinkData
|
||||
},
|
||||
disabled() {
|
||||
if (this.form.cycle === 'once') return true
|
||||
return false
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
contributionLinkData() {
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
"daily": "täglich",
|
||||
"hourly": "stündlich",
|
||||
"monthly": "monatlich",
|
||||
"null": "Bitter wähle einen Zyklus",
|
||||
"once": "einmalig",
|
||||
"weekly": "wöchentlich",
|
||||
"yearly": "jährlich"
|
||||
},
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
"daily": "daily",
|
||||
"hourly": "hourly",
|
||||
"monthly": "monthly",
|
||||
"null": "please select a cycle",
|
||||
"once": "unique",
|
||||
"weekly": "weekly",
|
||||
"yearly": "yearly"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user