@afeefa/vue-app 0.0.201 → 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.
|
1
|
+
0.0.202
|
package/package.json
CHANGED
@@ -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.
|
24
|
+
if (this._showSuccess) {
|
25
|
+
this.alert('Die Daten wurden gespeichert.')
|
26
|
+
}
|
18
27
|
}
|
19
28
|
|
20
29
|
processError (result) {
|