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);
|
||||
}
|
||||
|
||||
const successMsg = isEditMode
|
||||
? `Policy "${payload.policyName}" updated successfully!`
|
||||
: `Policy "${payload.policyName}" created successfully!`;
|
||||
let actionWord = isDeploy ? 'created' : 'saved as draft';
|
||||
if (isEditMode) {
|
||||
actionWord = isDeploy ? 'updated' : 'saved as draft';
|
||||
}
|
||||
|
||||
const successMsg = `Policy "${payload.policyName}" ${actionWord} successfully!`;
|
||||
|
||||
navigate('/policy-engine', { state: { successMsg } });
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user