mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
php validation added
This commit is contained in:
@@ -25,7 +25,7 @@ export default {
|
||||
methods: {
|
||||
updateStartDate(event) {
|
||||
const date = event.target.value;
|
||||
console.log(date)
|
||||
// console.log(date)
|
||||
this.$store.dispatch('updateStartDate', date)
|
||||
.catch(({name, violations}) => {
|
||||
if (name === 'ValidationException' || name === 'AccessException') {
|
||||
@@ -37,11 +37,6 @@ export default {
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
// startDate() {
|
||||
// const date = ISOToDatetime(this.$store.state.accompanyingCourse.openingDate.datetime)
|
||||
// console.log(dateToISO(date))
|
||||
// // return datetimeToISO(this.$store.state.accompanyingCourse.openingDate)
|
||||
// }
|
||||
...mapState({
|
||||
startDate: state => dateToISO(ISOToDatetime(state.accompanyingCourse.openingDate.datetime))
|
||||
})
|
||||
|
Reference in New Issue
Block a user