@@ -10,7 +10,6 @@ import {
1010 TranslateModule ,
1111 TranslateService ,
1212} from '@ngx-translate/core' ;
13- import { UiSwitchModule } from 'ngx-ui-switch' ;
1413import {
1514 BehaviorSubject ,
1615 Subscription ,
@@ -20,7 +19,6 @@ import {
2019 distinctUntilChanged ,
2120 map ,
2221} from 'rxjs/operators' ;
23- import { AlertType } from 'src/app/shared/alert/alert-type' ;
2422
2523import {
2624 AccessibilitySetting ,
@@ -29,13 +27,19 @@ import {
2927} from '../../accessibility/accessibility-settings.service' ;
3028import { AuthService } from '../../core/auth/auth.service' ;
3129import { AlertComponent } from '../../shared/alert/alert.component' ;
30+ import { AlertType } from '../../shared/alert/alert-type' ;
3231import { ContextHelpDirective } from '../../shared/context-help.directive' ;
3332import { KlaroService } from '../../shared/cookies/klaro.service' ;
3433import {
3534 hasValue ,
3635 isEmpty ,
3736} from '../../shared/empty.util' ;
3837import { NotificationsService } from '../../shared/notifications/notifications.service' ;
38+ import {
39+ SwitchColor ,
40+ SwitchComponent ,
41+ SwitchOption ,
42+ } from '../../shared/switch/switch.component' ;
3943
4044/**
4145 * Component providing the form where users can update accessibility settings.
@@ -47,9 +51,9 @@ import { NotificationsService } from '../../shared/notifications/notifications.s
4751 CommonModule ,
4852 TranslateModule ,
4953 FormsModule ,
50- UiSwitchModule ,
5154 ContextHelpDirective ,
5255 AlertComponent ,
56+ SwitchComponent ,
5357 ] ,
5458 standalone : true ,
5559} )
@@ -62,6 +66,15 @@ export class AccessibilitySettingsComponent implements OnInit, OnDestroy {
6266 isAuthenticated : BehaviorSubject < boolean > = new BehaviorSubject ( false ) ;
6367 cookieIsAccepted : BehaviorSubject < boolean > = new BehaviorSubject ( false ) ;
6468
69+ /**
70+ * The custom options for the 'ds-switch' component
71+ */
72+ switchOptions : SwitchOption [ ] = [
73+ { value : true , labelColor : SwitchColor . Success , backgroundColor : SwitchColor . Success ,
74+ label : 'info.accessibility-settings.notificationTimeOutEnabled.label.enabled' } ,
75+ { value : false , label : 'info.accessibility-settings.notificationTimeOutEnabled.label.disabled' } ,
76+ ] ;
77+
6578 private subscriptions : Subscription [ ] = [ ] ;
6679
6780 constructor (
0 commit comments