@kumori/aurora-backend-handler 1.0.8 → 1.0.9
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.
- package/api/resources-api-service.ts +1 -1
- package/backend-handler.ts +13 -0
- package/package.json +1 -1
|
@@ -583,7 +583,7 @@ const deleteResourceBase = async (
|
|
|
583
583
|
//eventHelper.resource.publish.deleted(resource);
|
|
584
584
|
const resourceNotification: Notification = {
|
|
585
585
|
type: "success",
|
|
586
|
-
subtype: "resource-
|
|
586
|
+
subtype: "resource-deleting",
|
|
587
587
|
date: Date.now().toString(),
|
|
588
588
|
status: "unread",
|
|
589
589
|
callToAction: false,
|
package/backend-handler.ts
CHANGED
|
@@ -1044,6 +1044,19 @@ export class BackendHandler {
|
|
|
1044
1044
|
);
|
|
1045
1045
|
|
|
1046
1046
|
const deletedCb = (data: Resource) => {
|
|
1047
|
+
const resourceNotification: Notification = {
|
|
1048
|
+
type: "success",
|
|
1049
|
+
subtype: "resource-deleting",
|
|
1050
|
+
date: Date.now().toString(),
|
|
1051
|
+
status: "unread",
|
|
1052
|
+
callToAction: false,
|
|
1053
|
+
data: {
|
|
1054
|
+
resource: data.name,
|
|
1055
|
+
type: data.type,
|
|
1056
|
+
tenant: data.tenant
|
|
1057
|
+
}
|
|
1058
|
+
};
|
|
1059
|
+
eventHelper.notification.publish.creation(resourceNotification);
|
|
1047
1060
|
};
|
|
1048
1061
|
eventHelper.resource.subscribe.deleted(deletedCb);
|
|
1049
1062
|
this.unsubscribeFunctions.push(() =>
|