summaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-06-25 17:20:59 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-06-25 17:29:24 +0200
commit97501ef63577b72eaef6b1b5961b262c3529ec36 (patch)
tree76ddcf2d884c22a1cf359b0e9c0cb3ceb5589c2b /src/components
parent4758947a4b87aabc93b7b532a6afd815d514b0ce (diff)
Use nextcloud-router more
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ContactDetails/ContactDetailsAvatar.vue2
-rw-r--r--src/components/Properties/PropertyDateTime.vue3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/components/ContactDetails/ContactDetailsAvatar.vue b/src/components/ContactDetails/ContactDetailsAvatar.vue
index fb510678..a2a24b5b 100644
--- a/src/components/ContactDetails/ContactDetailsAvatar.vue
+++ b/src/components/ContactDetails/ContactDetailsAvatar.vue
@@ -207,7 +207,7 @@ export default {
'image/gif',
'image/x-xbitmap',
'image/bmp',
- 'image/svg+xml',
+ 'image/svg+xml'
])
.build()
diff --git a/src/components/Properties/PropertyDateTime.vue b/src/components/Properties/PropertyDateTime.vue
index 4700615f..71561c42 100644
--- a/src/components/Properties/PropertyDateTime.vue
+++ b/src/components/Properties/PropertyDateTime.vue
@@ -59,6 +59,7 @@
import debounce from 'debounce'
import moment from 'moment'
import { DatetimePicker } from 'nextcloud-vue'
+import { getLocale } from 'nextcloud-l10n'
import { VCardTime } from 'ical.js'
import PropertyMixin from 'Mixins/PropertyMixin'
@@ -132,7 +133,7 @@ export default {
mounted() {
// Load the locale
// convert format like en_GB to en-gb for `moment.js`
- let locale = OC.getLocale().replace('_', '-').toLowerCase()
+ let locale = getLocale().replace('_', '-').toLowerCase()
// default load e.g. fr-fr
import('moment/locale/' + this.locale)