@afeefa/vue-app 0.0.105 → 0.0.106
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.106
|
package/package.json
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
import { AlertEvent } from '@a-vue/events'
|
2
|
+
import { eventBus } from '@a-vue/plugins/event-bus/EventBus'
|
3
|
+
|
1
4
|
import { ApiAction } from './ApiAction'
|
2
5
|
|
3
6
|
export class DeleteAction extends ApiAction {
|
@@ -22,4 +25,12 @@ export class DeleteAction extends ApiAction {
|
|
22
25
|
processResult () {
|
23
26
|
return true
|
24
27
|
}
|
28
|
+
|
29
|
+
processError (result) {
|
30
|
+
eventBus.dispatch(new AlertEvent(AlertEvent.ERROR, {
|
31
|
+
headline: 'Die Daten konnten nicht gelöscht werden.',
|
32
|
+
message: result.message,
|
33
|
+
detail: result.detail
|
34
|
+
}))
|
35
|
+
}
|
25
36
|
}
|