@afeefa/vue-app 0.0.328 → 0.0.330

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 0.0.328
1
+ 0.0.330
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.328",
3
+ "version": "0.0.330",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -39,6 +39,7 @@
39
39
 
40
40
  <script>
41
41
  import { Component, Vue, Watch } from '@a-vue'
42
+ import { adminConfig } from '@a-admin/config/AdminConfig'
42
43
  import { SaveEvent } from './save-indicator/SaveEvent'
43
44
  import { routeConfigPlugin } from '@a-vue/plugins/route-config/RouteConfigPlugin'
44
45
 
@@ -124,6 +125,17 @@ export default class ABreadcrumbs extends Vue {
124
125
  this.breadcrumbs = breadcrumbs
125
126
  this.wrapBreadcrumbs_ = false
126
127
 
128
+ const titles = breadcrumbs
129
+ .filter(b => b.title && b.title !== '...')
130
+ .map(b => b.title)
131
+ const appTitle = adminConfig.app.title
132
+ if (titles.length) {
133
+ const pageTitle = titles.reverse().join(' – ')
134
+ document.title = appTitle ? `${pageTitle} | ${appTitle}` : pageTitle
135
+ } else if (appTitle) {
136
+ document.title = appTitle
137
+ }
138
+
127
139
  this.scrollBreadcrumbs()
128
140
  }
129
141
 
@@ -311,7 +311,7 @@ export default class ADatePicker extends Mixins(ComponentWidthMixin, UsesPositio
311
311
  get displayedInputValue () {
312
312
  if (this.type === 'month') {
313
313
  const date = this.value_
314
- const monthName = date.toLocaleString('default', { month: 'long' })
314
+ const monthName = date.toLocaleString('de-DE', { month: 'long' })
315
315
  return monthName + ' ' + date.getFullYear()
316
316
  }
317
317
 
@@ -35,10 +35,15 @@ import {
35
35
  } from '@mdi/js'
36
36
  import Vue from 'vue'
37
37
  import Vuetify from 'vuetify/lib'
38
+ import de from 'vuetify/lib/locale/de'
38
39
 
39
40
  Vue.use(Vuetify)
40
41
 
41
42
  export default new Vuetify({
43
+ lang: {
44
+ locales: { de },
45
+ current: 'de'
46
+ },
42
47
  icons: {
43
48
  iconfont: 'mdiSvg',
44
49
  values: {