RED-9460: display all types which have a dictionary in dossier settings.
This commit is contained in:
parent
d43f46ceb9
commit
9cae140cb1
@ -75,6 +75,7 @@ import { IconsModule } from './modules/icons/icons.module';
|
||||
import { PdfViewerModule } from './modules/pdf-viewer/pdf-viewer.module';
|
||||
import { ACTIVE_DOSSIERS_SERVICE, ARCHIVED_DOSSIERS_SERVICE } from './tokens';
|
||||
import { NavigateLastDossiersScreenDirective } from '@shared/directives/navigate-last-dossiers-screen.directive';
|
||||
import { ColorPickerService } from 'ngx-color-picker';
|
||||
|
||||
export const appModuleFactory = (config: AppConfig) => {
|
||||
@NgModule({
|
||||
@ -267,6 +268,7 @@ export const appModuleFactory = (config: AppConfig) => {
|
||||
DatePipe,
|
||||
...provideCustomDateFormatter(),
|
||||
...provideHelpMode(helpModeKeys as HelpModeKey[]),
|
||||
ColorPickerService,
|
||||
],
|
||||
bootstrap: [AppComponent],
|
||||
})
|
||||
|
||||
@ -154,7 +154,7 @@ export class DictionaryService extends EntitiesService<IDictionary, Dictionary>
|
||||
getDictionaries(dossierTemplateId: string) {
|
||||
return this._dictionariesMapService
|
||||
.get(dossierTemplateId)
|
||||
.filter(d => d.model['typeId'] && (d.dossierDictionaryOnly || d.addToDictionaryAction));
|
||||
.filter(d => d.model['typeId'] && (d.hasDictionary || d.addToDictionaryAction));
|
||||
}
|
||||
|
||||
getRedactTextDictionaries(dossierId: string, dossierDictionaryOnly: boolean): Dictionary[] {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user