Chore: Update backend dependencies in bulk (#7656)

This commit is contained in:
Trenton H
2024-09-08 13:03:38 -07:00
committed by GitHub
parent 3df8be0bc7
commit 3813dc2e18
7 changed files with 1411 additions and 1214 deletions

View File

@@ -12,7 +12,7 @@ import { DragDropModule } from '@angular/cdk/drag-drop'
<button
*pngxIfObjectPermissions="{
object: { id: 2, owner: user1 },
action: 'view'
action: 'view',
}"
>
Some Text

View File

@@ -188,9 +188,9 @@ export class FilterEditorComponent
case FILTER_CORRESPONDENT:
case FILTER_HAS_CORRESPONDENT_ANY:
if (rule.value) {
return $localize`Correspondent: ${this.correspondents.find(
(c) => c.id == +rule.value
)?.name}`
return $localize`Correspondent: ${
this.correspondents.find((c) => c.id == +rule.value)?.name
}`
} else {
return $localize`Without correspondent`
}
@@ -198,9 +198,9 @@ export class FilterEditorComponent
case FILTER_DOCUMENT_TYPE:
case FILTER_HAS_DOCUMENT_TYPE_ANY:
if (rule.value) {
return $localize`Document type: ${this.documentTypes.find(
(dt) => dt.id == +rule.value
)?.name}`
return $localize`Document type: ${
this.documentTypes.find((dt) => dt.id == +rule.value)?.name
}`
} else {
return $localize`Without document type`
}
@@ -208,16 +208,17 @@ export class FilterEditorComponent
case FILTER_STORAGE_PATH:
case FILTER_HAS_STORAGE_PATH_ANY:
if (rule.value) {
return $localize`Storage path: ${this.storagePaths.find(
(sp) => sp.id == +rule.value
)?.name}`
return $localize`Storage path: ${
this.storagePaths.find((sp) => sp.id == +rule.value)?.name
}`
} else {
return $localize`Without storage path`
}
case FILTER_HAS_TAGS_ALL:
return $localize`Tag: ${this.tags.find((t) => t.id == +rule.value)
?.name}`
return $localize`Tag: ${
this.tags.find((t) => t.id == +rule.value)?.name
}`
case FILTER_HAS_ANY_TAG:
if (rule.value == 'false') {
@@ -225,9 +226,9 @@ export class FilterEditorComponent
}
case FILTER_HAS_CUSTOM_FIELDS_ALL:
return $localize`Custom fields: ${this.customFields.find(
(f) => f.id == +rule.value
)?.name}`
return $localize`Custom fields: ${
this.customFields.find((f) => f.id == +rule.value)?.name
}`
case FILTER_HAS_ANY_CUSTOM_FIELDS:
if (rule.value == 'false') {

View File

@@ -9,7 +9,7 @@ import { PermissionsService } from '../services/permissions.service'
<button
*pngxIfObjectPermissions="{
object: { id: 2, owner: user1 },
action: 'view'
action: 'view',
}"
>
Some Text

View File

@@ -29,7 +29,7 @@ export class UsernamePipe implements PipeTransform {
transform(userID: number): string {
return this.users
? this.getName(this.users.find((u) => u.id === userID)) ?? ''
? (this.getName(this.users.find((u) => u.id === userID)) ?? '')
: $localize`Shared`
}

View File

@@ -298,8 +298,9 @@ export class DocumentListViewService {
errorMessage = Object.keys(error.error)
.map((fieldName) => {
const fieldError: Array<string> = error.error[fieldName]
return `${this.sortFields.find((f) => f.field == fieldName)
?.name}: ${fieldError[0]}`
return `${
this.sortFields.find((f) => f.field == fieldName)?.name
}: ${fieldError[0]}`
})
.join(', ')
} else {