Skip to content

Commit 72ea172

Browse files
Mattia VianelliMattia Vianelli
authored andcommitted
DSC-2715 Updated logic and name for the config
1 parent 213d09a commit 72ea172

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/submission/form/submission-form.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export class SubmissionFormComponent implements OnChanges, OnDestroy {
341341
* Check if submission legend should be shown
342342
*/
343343
get shouldShowLegend(): boolean {
344-
return !environment.submission.hideLegend;
344+
return environment.submission.showLegend;
345345
}
346346

347347
/**

src/config/default-app-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ export class DefaultAppConfig implements AppConfig {
323323
},
324324
// Minimum number of characters required before performing a lookup.
325325
minChars: 3,
326-
hideLegend: false,
326+
showLegend: true,
327327
};
328328

329329
// Default Language in which the UI will be rendered if the user's browser language is not an active language

src/config/submission-config.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ export interface SubmissionConfig extends Config {
5656
detectDuplicate: DetectDuplicateConfig;
5757
dropdownHintEnabled?: SubmissionDropdownHintEnabled;
5858
minChars?: number;
59-
hideLegend?: boolean;
59+
showLegend?: boolean;
6060
}

0 commit comments

Comments
 (0)