mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
create radio buttons in mixin
This commit is contained in:
parent
daa8684cc6
commit
dd7b95b9af
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -470,7 +470,7 @@ jobs:
|
|||||||
report_name: Coverage Admin Interface
|
report_name: Coverage Admin Interface
|
||||||
type: lcov
|
type: lcov
|
||||||
result_path: ./coverage/lcov.info
|
result_path: ./coverage/lcov.info
|
||||||
min_coverage: 78
|
min_coverage: 79
|
||||||
token: ${{ github.token }}
|
token: ${{ github.token }}
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|||||||
@ -199,16 +199,12 @@ export default {
|
|||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
this.$store.commit('openCreationsPlus', 1)
|
this.$store.commit('openCreationsPlus', 1)
|
||||||
// das creation Formular reseten
|
|
||||||
this.$refs.creationForm.reset()
|
this.$refs.creationForm.reset()
|
||||||
// Den geschöpften Wert auf o setzen
|
|
||||||
this.value = 0
|
this.value = 0
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
this.$toasted.error(error.message)
|
this.$toasted.error(error.message)
|
||||||
// das creation Formular reseten
|
|
||||||
this.$refs.creationForm.reset()
|
this.$refs.creationForm.reset()
|
||||||
// Den geschöpften Wert auf o setzen
|
|
||||||
this.value = 0
|
this.value = 0
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -219,15 +215,5 @@ export default {
|
|||||||
this.updateRadioSelected(this.selected)
|
this.updateRadioSelected(this.selected)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
|
||||||
radioOptions() {
|
|
||||||
return this.creationDateObjects.map((obj, idx) => {
|
|
||||||
return {
|
|
||||||
item: { ...obj, creation: this.creation[idx] },
|
|
||||||
name: obj.short + (this.creation[idx] ? ' ' + this.creation[idx] + ' GDD' : ''),
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,4 +1,7 @@
|
|||||||
export const creationMonths = {
|
export const creationMonths = {
|
||||||
|
props: {
|
||||||
|
creation: [1000, 1000, 1000],
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
creationDates() {
|
creationDates() {
|
||||||
const now = new Date(Date.now())
|
const now = new Date(Date.now())
|
||||||
@ -20,5 +23,13 @@ export const creationMonths = {
|
|||||||
})
|
})
|
||||||
return result
|
return result
|
||||||
},
|
},
|
||||||
|
radioOptions() {
|
||||||
|
return this.creationDateObjects.map((obj, idx) => {
|
||||||
|
return {
|
||||||
|
item: { ...obj, creation: this.creation[idx] },
|
||||||
|
name: obj.short + (this.creation[idx] ? ' ' + this.creation[idx] + ' GDD' : ''),
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user