mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Chore: indent system status code copy
This commit is contained in:
parent
cb160212d4
commit
c4f9828a10
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue