RED-3800: update common-ui
This commit is contained in:
parent
4c03f92c62
commit
16a1d99bc1
@ -21,3 +21,5 @@ ij_typescript_spaces_within_imports = true
|
||||
|
||||
[{*.json, .prettierrc, .eslintrc}]
|
||||
indent_size = 2
|
||||
tab_width = 2
|
||||
ij_json_array_wrapping = off
|
||||
|
||||
@ -4,3 +4,4 @@
|
||||
/coverage
|
||||
/node_modules
|
||||
/bamboo-specs
|
||||
*.md
|
||||
|
||||
@ -12,9 +12,13 @@
|
||||
"rules": {
|
||||
"@typescript-eslint/no-unsafe-return": "off",
|
||||
"@typescript-eslint/no-unsafe-assignment": "off",
|
||||
"@typescript-eslint/no-unsafe-argument": "off",
|
||||
"@typescript-eslint/no-unsafe-member-access": "off",
|
||||
"@typescript-eslint/no-unsafe-call": "off",
|
||||
"@typescript-eslint/unbound-method": "off"
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"@typescript-eslint/unbound-method": "off",
|
||||
"@typescript-eslint/no-misused-promises": "off",
|
||||
"@typescript-eslint/no-floating-promises": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -12,7 +12,7 @@ export class AppComponent {
|
||||
// ViewContainerRef needs to be injected for the color picker to work
|
||||
// RouterHistoryService needs to be injected for last dossiers screen to be updated on first app load
|
||||
constructor(
|
||||
public viewContainerRef: ViewContainerRef,
|
||||
readonly viewContainerRef: ViewContainerRef,
|
||||
private readonly _routerHistoryService: RouterHistoryService,
|
||||
private readonly _userService: UserService,
|
||||
readonly documentViewer: REDDocumentViewer,
|
||||
|
||||
@ -428,9 +428,8 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
|
||||
|
||||
if (hasAnnotations) {
|
||||
return this.#findAnnotationsToDraw(newAnnotations, oldAnnotations);
|
||||
} else {
|
||||
return newAnnotations;
|
||||
}
|
||||
return newAnnotations;
|
||||
}
|
||||
|
||||
#rebuildFilters() {
|
||||
|
||||
@ -84,7 +84,7 @@ export class EditDossierGeneralInfoComponent implements OnInit, EditDossierSecti
|
||||
this.states.length === 1
|
||||
? 'edit-dossier-dialog.general-info.form.dossier-state.no-state-placeholder'
|
||||
: 'edit-dossier-dialog.general-info.form.dossier-state.placeholder',
|
||||
);
|
||||
) as string;
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
@ -174,10 +174,8 @@ export class EditDossierGeneralInfoComponent implements OnInit, EditDossierSecti
|
||||
}
|
||||
|
||||
getStateName(stateId: string): string {
|
||||
return (
|
||||
this._dossierStatesMapService.get(this.dossier.dossierTemplateId, stateId)?.name ||
|
||||
this._translateService.instant('edit-dossier-dialog.general-info.form.dossier-state.placeholder')
|
||||
);
|
||||
return (this._dossierStatesMapService.get(this.dossier.dossierTemplateId, stateId)?.name ||
|
||||
this._translateService.instant('edit-dossier-dialog.general-info.form.dossier-state.placeholder')) as string;
|
||||
}
|
||||
|
||||
getStateColor(stateId: string): string {
|
||||
|
||||
@ -3,7 +3,7 @@ import { HttpClient } from '@angular/common/http';
|
||||
import { Title } from '@angular/platform-browser';
|
||||
import packageInfo from '../../../../../package.json';
|
||||
import envConfig from '../../assets/config/config.json';
|
||||
import { CacheApiService, wipeAllCaches, wipeCaches } from '@red/cache';
|
||||
import { CacheApiService, wipeAllCaches } from '@red/cache';
|
||||
import { Observable } from 'rxjs';
|
||||
import { tap } from 'rxjs/operators';
|
||||
import { AppConfig } from '@red/domain';
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit f1934abc2b259a6e89303e95fe70a54471d2401d
|
||||
Subproject commit 90419f2f8b7c1d970ca0bf2cfdfebae9d3271156
|
||||
Loading…
x
Reference in New Issue
Block a user