automate-ui/role-details: pretty role JSON in "Copy Definition"
When copying the definition of a policy, the result is "pretty", i.e., contains
line breaks and indentation. This was done in
The Role's "Copy Definition" string wasn't adapted to this.
@@ -62,6 +62,6 @@ export class RoleDetailsComponent implements OnInit, OnDestroy {
}
public roleToString(role: Role): string {
- return JSON.stringify(role);
+ return JSON.stringify(role, null, ' ');
}
}
