Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Chore: indent system status code copy

shamoonc4f9828a10c2
diff --git a/src-ui/src/app/components/common/system-status-dialog/system-status-dialog.component.spec.ts b/src-ui/src/app/components/common/system-status-dialog/system-status-dialog.component.spec.ts
index 13baa363a..b515bb622 100644
--- a/src-ui/src/app/components/common/system-status-dialog/system-status-dialog.component.spec.ts
+++ b/src-ui/src/app/components/common/system-status-dialog/system-status-dialog.component.spec.ts
@@ -87,7 +87,7 @@ describe('SystemStatusDialogComponent', () => {
jest.spyOn(clipboard, 'copy')
component.copy()
expect(clipboard.copy).toHaveBeenCalledWith(
- JSON.stringify(component.status)
+ JSON.stringify(component.status, null, 4)
)
expect(component.copied).toBeTruthy()
tick(3000)
diff --git a/src-ui/src/app/components/common/system-status-dialog/system-status-dialog.component.ts b/src-ui/src/app/components/common/system-status-dialog/system-status-dialog.component.ts
index 83468e711..8535969a5 100644
--- a/src-ui/src/app/components/common/system-status-dialog/system-status-dialog.component.ts
+++ b/src-ui/src/app/components/common/system-status-dialog/system-status-dialog.component.ts
@@ -28,7 +28,7 @@ export class SystemStatusDialogComponent {
}
public copy() {
- this.clipboard.copy(JSON.stringify(this.status))
+ this.clipboard.copy(JSON.stringify(this.status, null, 4))
this.copied = true
setTimeout(() => {
this.copied = false