@afeefa/vue-app 0.0.200 → 0.0.202

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 0.0.200
1
+ 0.0.202
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.200",
3
+ "version": "0.0.202",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -5,8 +5,15 @@ import { eventBus } from '@a-vue/plugins/event-bus/EventBus'
5
5
  import { ApiAction } from './ApiAction'
6
6
 
7
7
  export class SaveAction extends ApiAction {
8
+ _showSuccess = true
9
+
8
10
  _minDuration = adminConfig.app.saveLoaderMinDuration || 400
9
11
 
12
+ hideSuccess () {
13
+ this._showSuccess = false
14
+ return this
15
+ }
16
+
10
17
  save () {
11
18
  return this.execute()
12
19
  }
@@ -14,7 +21,9 @@ export class SaveAction extends ApiAction {
14
21
  async afterRequest () {
15
22
  await super.afterRequest()
16
23
 
17
- this.alert('Die Daten wurden gespeichert.')
24
+ if (this._showSuccess) {
25
+ this.alert('Die Daten wurden gespeichert.')
26
+ }
18
27
  }
19
28
 
20
29
  processError (result) {
@@ -5,6 +5,7 @@
5
5
  v-model="model[name]"
6
6
  :label="label || name"
7
7
  :validator="validator"
8
+ :max="max"
8
9
  v-bind="$attrs"
9
10
  v-on="$listeners"
10
11
  />
@@ -33,6 +34,10 @@ export default class FormFieldDate extends Mixins(FormFieldMixin) {
33
34
  validate () {
34
35
  this.$refs.datePicker.validate()
35
36
  }
37
+
38
+ get max () {
39
+ return this.validator?.getParam('max_day')
40
+ }
36
41
  }
37
42
  </script>
38
43