parent
d583cb2094
commit
a558f5b35a
2 changed files with 4 additions and 2 deletions
|
@ -194,7 +194,6 @@ import TaskCollectionService from '../../services/taskCollection'
|
||||||
import {mapState} from 'vuex'
|
import {mapState} from 'vuex'
|
||||||
import Rights from '../../models/constants/rights.json'
|
import Rights from '../../models/constants/rights.json'
|
||||||
import FilterPopup from '@/components/list/partials/filter-popup.vue'
|
import FilterPopup from '@/components/list/partials/filter-popup.vue'
|
||||||
import {format} from 'date-fns'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'GanttChart',
|
name: 'GanttChart',
|
||||||
|
@ -474,7 +473,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
formatYear(date) {
|
formatYear(date) {
|
||||||
return format(date, 'MMMM, yyyy')
|
return this.format(date, 'MMMM, yyyy')
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -112,6 +112,9 @@ Vue.mixin({
|
||||||
formatDateShort(date) {
|
formatDateShort(date) {
|
||||||
return formatDate(date, 'PPpp', this.$t('date.locale'))
|
return formatDate(date, 'PPpp', this.$t('date.locale'))
|
||||||
},
|
},
|
||||||
|
format(date, f) {
|
||||||
|
return formatDate(date, f, this.$t('date.locale'))
|
||||||
|
},
|
||||||
getNamespaceTitle(n) {
|
getNamespaceTitle(n) {
|
||||||
return getNamespaceTitle(n, (p: VueI18n.Path) => this.$t(p))
|
return getNamespaceTitle(n, (p: VueI18n.Path) => this.$t(p))
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue