feat: implement AddPolicyEngine component for dynamic rule and action configuration
This commit is contained in:
@@ -619,9 +619,12 @@ export default function AddPolicyEngine() {
|
|||||||
await createPolicy(payload);
|
await createPolicy(payload);
|
||||||
}
|
}
|
||||||
|
|
||||||
const successMsg = isEditMode
|
let actionWord = isDeploy ? 'created' : 'saved as draft';
|
||||||
? `Policy "${payload.policyName}" updated successfully!`
|
if (isEditMode) {
|
||||||
: `Policy "${payload.policyName}" created successfully!`;
|
actionWord = isDeploy ? 'updated' : 'saved as draft';
|
||||||
|
}
|
||||||
|
|
||||||
|
const successMsg = `Policy "${payload.policyName}" ${actionWord} successfully!`;
|
||||||
|
|
||||||
navigate('/policy-engine', { state: { successMsg } });
|
navigate('/policy-engine', { state: { successMsg } });
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user