Chore: indent system status code copy

This commit is contained in:
shamoon 2024-05-17 14:30:03 -07:00
parent cb160212d4
commit c4f9828a10
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ describe('SystemStatusDialogComponent', () => {
jest.spyOn(clipboard, 'copy') jest.spyOn(clipboard, 'copy')
component.copy() component.copy()
expect(clipboard.copy).toHaveBeenCalledWith( expect(clipboard.copy).toHaveBeenCalledWith(
JSON.stringify(component.status) JSON.stringify(component.status, null, 4)
) )
expect(component.copied).toBeTruthy() expect(component.copied).toBeTruthy()
tick(3000) tick(3000)

View File

@ -28,7 +28,7 @@ export class SystemStatusDialogComponent {
} }
public copy() { public copy() {
this.clipboard.copy(JSON.stringify(this.status)) this.clipboard.copy(JSON.stringify(this.status, null, 4))
this.copied = true this.copied = true
setTimeout(() => { setTimeout(() => {
this.copied = false this.copied = false