mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 10:26:16 +00:00
Merge pull request #3912 from Infisical/fix/multiEnvDeleteErrorMessage
Improve multi-env error message to show full env name instead of slug
This commit is contained in:
@@ -65,6 +65,7 @@ export const createNotification = (
|
|||||||
toast(<NotificationContent {...myProps} />, {
|
toast(<NotificationContent {...myProps} />, {
|
||||||
position: "bottom-right",
|
position: "bottom-right",
|
||||||
...toastProps,
|
...toastProps,
|
||||||
|
autoClose: toastProps.autoClose || 15000,
|
||||||
theme: "dark",
|
theme: "dark",
|
||||||
type: myProps?.type || "info"
|
type: myProps?.type || "info"
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -183,7 +183,7 @@ export const SelectionPanel = ({
|
|||||||
(result) => result.status === "fulfilled" && result.value.environment === env.slug
|
(result) => result.status === "fulfilled" && result.value.environment === env.slug
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.map((env) => env.slug);
|
.map((env) => env.name);
|
||||||
if (processedEntries === 0) {
|
if (processedEntries === 0) {
|
||||||
handlePopUpClose("bulkDeleteEntries");
|
handlePopUpClose("bulkDeleteEntries");
|
||||||
createNotification({
|
createNotification({
|
||||||
|
|||||||
Reference in New Issue
Block a user