@backstage/plugin-catalog-react 0.0.0-nightly-20230825021043 → 0.0.0-nightly-20230826020825
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/CHANGELOG.md +6 -5
- package/alpha/package.json +1 -1
- package/dist/index.esm.js +8 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-react
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20230826020825
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- 7029ba1ce0af: Added delete alert popup when user delete the entity
|
|
7
8
|
- Updated dependencies
|
|
8
|
-
- @backstage/core-components@0.0.0-nightly-
|
|
9
|
-
- @backstage/integration@0.0.0-nightly-
|
|
10
|
-
- @backstage/core-plugin-api@0.0.0-nightly-
|
|
9
|
+
- @backstage/core-components@0.0.0-nightly-20230826020825
|
|
10
|
+
- @backstage/integration@0.0.0-nightly-20230826020825
|
|
11
|
+
- @backstage/core-plugin-api@0.0.0-nightly-20230826020825
|
|
11
12
|
- @backstage/catalog-client@1.4.3
|
|
12
13
|
- @backstage/catalog-model@1.4.1
|
|
13
14
|
- @backstage/errors@1.2.1
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
- @backstage/version-bridge@1.0.4
|
|
17
18
|
- @backstage/plugin-catalog-common@1.0.15
|
|
18
19
|
- @backstage/plugin-permission-common@0.7.7
|
|
19
|
-
- @backstage/plugin-permission-react@0.0.0-nightly-
|
|
20
|
+
- @backstage/plugin-permission-react@0.0.0-nightly-20230826020825
|
|
20
21
|
|
|
21
22
|
## 1.8.3-next.0
|
|
22
23
|
|
package/alpha/package.json
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -2340,11 +2340,18 @@ const Contents = ({
|
|
|
2340
2340
|
);
|
|
2341
2341
|
const onDelete = useCallback(
|
|
2342
2342
|
async function onDeleteFn() {
|
|
2343
|
+
var _a2;
|
|
2343
2344
|
if ("deleteEntity" in state) {
|
|
2344
2345
|
setBusy(true);
|
|
2345
2346
|
try {
|
|
2346
2347
|
await state.deleteEntity();
|
|
2348
|
+
const entityName = (_a2 = entity.metadata.title) != null ? _a2 : entity.metadata.name;
|
|
2347
2349
|
onConfirm();
|
|
2350
|
+
alertApi.post({
|
|
2351
|
+
message: `Removed entity ${entityName}`,
|
|
2352
|
+
severity: "success",
|
|
2353
|
+
display: "transient"
|
|
2354
|
+
});
|
|
2348
2355
|
} catch (err) {
|
|
2349
2356
|
assertError(err);
|
|
2350
2357
|
alertApi.post({ message: err.message });
|
|
@@ -2353,7 +2360,7 @@ const Contents = ({
|
|
|
2353
2360
|
}
|
|
2354
2361
|
}
|
|
2355
2362
|
},
|
|
2356
|
-
[alertApi, onConfirm, state]
|
|
2363
|
+
[alertApi, onConfirm, state, entity]
|
|
2357
2364
|
);
|
|
2358
2365
|
const DialogActionsPanel = () => /* @__PURE__ */ React.createElement(DialogActions, { className: classes.dialogActions }, /* @__PURE__ */ React.createElement(Button, { onClick: onClose, color: "primary" }, "Cancel"));
|
|
2359
2366
|
if (state.type === "loading") {
|