@afeefa/vue-app 0.0.105 → 0.0.106

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.105
1
+ 0.0.106
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.105",
3
+ "version": "0.0.106",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -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
  }