@afeefa/vue-app 0.0.126 → 0.0.128

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.126
1
+ 0.0.128
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.126",
3
+ "version": "0.0.128",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -1,10 +1,11 @@
1
+ import { adminConfig } from '@a-admin/config/AdminConfig'
1
2
  import { AlertEvent } from '@a-vue/events'
2
3
  import { eventBus } from '@a-vue/plugins/event-bus/EventBus'
3
4
 
4
5
  import { ApiAction } from './ApiAction'
5
6
 
6
7
  export class SaveAction extends ApiAction {
7
- _minDuration = 400
8
+ _minDuration = adminConfig.app.saveLoaderMinDuration || 400
8
9
 
9
10
  save () {
10
11
  return this.execute()
@@ -46,6 +46,7 @@ export default class ATableRow extends Vue {
46
46
  > * {
47
47
  padding: .15rem;
48
48
  padding-right: 1.5rem;
49
+ vertical-align: top;
49
50
 
50
51
  &:last-child {
51
52
  padding-right: .1rem;
@@ -73,6 +73,8 @@ export default class EditForm extends Vue {
73
73
  * as a date field, which could turn a null to a default date.
74
74
  * Using the created() method would result in already having set
75
75
  * the default date, hence not detecting a valid "change" anymore.
76
+ *
77
+ * comment 14.12. -> this should not be necessary if components do not alter models
76
78
  */
77
79
  // @Watch('modelToEdit', {immediate: true})
78
80
  // @Watch('modelToEdit')
@@ -109,6 +109,6 @@ export class AfeefaAdmin {
109
109
  splash
110
110
  }
111
111
  })
112
- }, 300)
112
+ }, adminConfig.app.appLoaderMinDuration || 300)
113
113
  }
114
114
  }
@@ -5,12 +5,14 @@ class AdminConfig {
5
5
  logo: null,
6
6
  title: null,
7
7
  loaderColor: null,
8
- rootRouteName: null
9
- }
8
+ rootRouteName: null,
9
+ appLoaderMinDuration: null,
10
+ saveLoaderMinDuration: null,
10
11
 
11
- components = {
12
- Splash: null,
13
- SidebarMenu: null
12
+ components: {
13
+ Splash: null,
14
+ SidebarMenu: null
15
+ }
14
16
  }
15
17
  }
16
18