use vue-moment again

This commit is contained in:
Moriz Wahl 2022-02-17 15:08:43 +01:00
parent 804f9837f4
commit ab33b953fb
3 changed files with 7 additions and 3 deletions

View File

@ -106,8 +106,6 @@
</div> </div>
</template> </template>
<script> <script>
import { duration } from 'moment'
export default { export default {
name: 'DecayInformation', name: 'DecayInformation',
props: { props: {
@ -124,7 +122,7 @@ export default {
}, },
computed: { computed: {
duration() { duration() {
return duration((this.decay.decayEnd - this.decay.decayStart) * 1000)._data return this.$moment.duration((this.decay.decayEnd - this.decay.decayStart) * 1000)._data
}, },
}, },
} }

View File

@ -11,6 +11,8 @@ import '@/assets/scss/gradido.scss'
import FlatPickr from 'vue-flatpickr-component' import FlatPickr from 'vue-flatpickr-component'
import 'flatpickr/dist/flatpickr.css' import 'flatpickr/dist/flatpickr.css'
import VueMoment from 'vue-moment'
import Loading from 'vue-loading-overlay' import Loading from 'vue-loading-overlay'
import 'vue-loading-overlay/dist/vue-loading.css' import 'vue-loading-overlay/dist/vue-loading.css'
@ -22,6 +24,7 @@ export default {
Vue.use(GlobalDirectives) Vue.use(GlobalDirectives)
Vue.use(BootstrapVue) Vue.use(BootstrapVue)
Vue.use(IconsPlugin) Vue.use(IconsPlugin)
Vue.use(VueMoment)
Vue.use(PortalVue) Vue.use(PortalVue)
Vue.use(FlatPickr) Vue.use(FlatPickr)
Vue.use(Loading) Vue.use(Loading)

View File

@ -10,6 +10,8 @@ import { messages } from 'vee-validate/dist/locale/en.json'
import RegeneratorRuntime from 'regenerator-runtime' import RegeneratorRuntime from 'regenerator-runtime'
import VueQrcode from 'vue-qrcode' import VueQrcode from 'vue-qrcode'
import VueMoment from 'vue-moment'
// import clickOutside from '@/directives/click-ouside.js' // import clickOutside from '@/directives/click-ouside.js'
import { focus } from 'vue-focus' import { focus } from 'vue-focus'
@ -43,6 +45,7 @@ global.localVue.use(Vuex)
global.localVue.use(IconsPlugin) global.localVue.use(IconsPlugin)
global.localVue.use(RegeneratorRuntime) global.localVue.use(RegeneratorRuntime)
global.localVue.use(VueQrcode) global.localVue.use(VueQrcode)
global.localVue.use(VueMoment)
global.localVue.component('validation-provider', ValidationProvider) global.localVue.component('validation-provider', ValidationProvider)
global.localVue.component('validation-observer', ValidationObserver) global.localVue.component('validation-observer', ValidationObserver)
// global.localVue.directive('click-outside', clickOutside) // global.localVue.directive('click-outside', clickOutside)