diff --git a/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.html b/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.html index ad1f6dd44..1e6fc62cf 100644 --- a/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.html +++ b/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.html @@ -11,12 +11,6 @@ -
- - {{ 'preferences-screen.form.open-structured-view-by-default' | translate }} - -
-
diff --git a/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.ts b/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.ts index 269fe712f..0b2564195 100644 --- a/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.ts +++ b/apps/red-ui/src/app/modules/account/screens/preferences/preferences.component.ts @@ -23,7 +23,6 @@ import { MatCheckbox } from '@angular/material/checkbox'; interface PreferencesForm { // preferences autoExpandFiltersOnActions: boolean; - openScmDialogByDefault: boolean; tableExtractionType: string; // warnings preferences loadAllAnnotationsWarning: boolean; @@ -78,7 +77,6 @@ export class PreferencesComponent extends BaseFormComponent implements OnInit { this.form = this._formBuilder.group({ // preferences autoExpandFiltersOnActions: [this.userPreferenceService.getAutoExpandFiltersOnActions()], - openScmDialogByDefault: [this.userPreferenceService.getOpenScmDialogByDefault()], tableExtractionType: [this.userPreferenceService.getTableExtractionType()], // warnings preferences loadAllAnnotationsWarning: [this.userPreferenceService.getBool(PreferencesKeys.loadAllAnnotationsWarning)], @@ -105,9 +103,6 @@ export class PreferencesComponent extends BaseFormComponent implements OnInit { if (this.form.controls.autoExpandFiltersOnActions.value !== this.userPreferenceService.getAutoExpandFiltersOnActions()) { await this.userPreferenceService.toggleAutoExpandFiltersOnActions(); } - if (this.form.controls.openScmDialogByDefault.value !== this.userPreferenceService.getOpenScmDialogByDefault()) { - await this.userPreferenceService.toggleOpenScmDialogByDefault(); - } if (this.form.controls.tableExtractionType.value !== this.userPreferenceService.getTableExtractionType()) { await this.userPreferenceService.save(PreferencesKeys.tableExtractionType, this.form.controls.tableExtractionType.value); @@ -137,7 +132,6 @@ export class PreferencesComponent extends BaseFormComponent implements OnInit { #patchValues() { this.form.patchValue({ autoExpandFiltersOnActions: this.userPreferenceService.getAutoExpandFiltersOnActions(), - openScmDialogByDefault: this.userPreferenceService.getOpenScmDialogByDefault(), tableExtractionType: this.userPreferenceService.getTableExtractionType(), loadAllAnnotationsWarning: this.userPreferenceService.getBool(PreferencesKeys.loadAllAnnotationsWarning), helpModeDialog: this.userPreferenceService.getBool(KEYS.helpModeDialog), diff --git a/apps/red-ui/src/app/users/user-preference.service.ts b/apps/red-ui/src/app/users/user-preference.service.ts index 4b05ce78c..f2fd00d34 100644 --- a/apps/red-ui/src/app/users/user-preference.service.ts +++ b/apps/red-ui/src/app/users/user-preference.service.ts @@ -10,7 +10,6 @@ export const PreferencesKeys = { filesListingMode: 'Files-Listing-Mode', autoExpandFiltersOnActions: 'Auto-Expand-Filters-On-Actions', loadAllAnnotationsWarning: 'Load-All-Annotations-Warning', - openScmDialogByDefault: 'Open-Structured-Component-Management-By-Default', tableExtractionType: 'Table-Extraction-Type', addRedactionDefaultOption: 'Add-Redaction-Default', addHintDefaultOption: 'Add-Hint-Default', @@ -65,15 +64,6 @@ export class UserPreferenceService extends IqserUserPreferenceService { await this.save(PreferencesKeys.autoExpandFiltersOnActions, nextValue); } - getOpenScmDialogByDefault(): boolean { - return this._getAttribute(PreferencesKeys.openScmDialogByDefault, 'false') === 'true'; - } - - async toggleOpenScmDialogByDefault(): Promise { - const nextValue = (!this.getOpenScmDialogByDefault()).toString(); - await this.save(PreferencesKeys.openScmDialogByDefault, nextValue); - } - getBool(key: string, defaultValue = 'false') { return this._getAttribute(key, defaultValue) === 'true'; }