diff --git a/resources/js/app/app.js b/resources/js/app/app.js index 5653c31b3..e3c227423 100644 --- a/resources/js/app/app.js +++ b/resources/js/app/app.js @@ -202,7 +202,6 @@ const _vueInstance = new Vue({ BEDITA.success = success; BEDITA.prompt = prompt; BEDITA.warning = warning; - BEDITA.formatDate = this.$helpers.formatDate; this.selectedTypes = this.queryFilter?.filter?.type || []; }); }, diff --git a/resources/js/app/pages/modules/index.js b/resources/js/app/pages/modules/index.js index ebe79c095..97e2e0db2 100644 --- a/resources/js/app/pages/modules/index.js +++ b/resources/js/app/pages/modules/index.js @@ -9,6 +9,7 @@ import { confirm } from 'app/components/dialog/dialog'; import { t } from 'ttag'; export default { + name: 'ModulesIndex', components: { CategoryPicker: () => import(/* webpackChunkName: "category-picker" */'app/components/category-picker/category-picker'), TagPicker: () => import(/* webpackChunkName: "tag-picker" */'app/components/tag-picker/tag-picker'), @@ -227,5 +228,9 @@ export default { extension(filename) { return filename.split('.').pop(); }, + + formatDate(d) { + return this.$helpers.formatDate(d); + }, } }