@@ -31,7 +31,7 @@ import { Subscription } from 'rxjs';
3131import { CoreNavigator } from '@services/navigator' ;
3232import { CorePromiseUtils } from '@singletons/promise-utils' ;
3333import { ActivatedRoute , ActivatedRouteSnapshot } from '@angular/router' ;
34- import { CoreConstants } from '@/core/constants' ;
34+ import { CoreConfigSettingKey , CoreSyncIcon } from '@/core/constants' ;
3535import { CoreRoutedItemsManagerSourcesTracker } from '@classes/items-management/routed-items-manager-sources-tracker' ;
3636import { AddonCalendarEventsSource } from '@addons/calendar/classes/events-source' ;
3737import { CoreSwipeNavigationItemsManager } from '@classes/items-management/swipe-navigation-items-manager' ;
@@ -97,7 +97,7 @@ export default class AddonCalendarEventPage implements OnInit, OnDestroy {
9797 canEdit = false ;
9898 hasOffline = false ;
9999 readonly isOnline = CoreNetwork . onlineSignal ;
100- syncIcon = CoreConstants . ICON_LOADING ; // Sync icon.
100+ syncIcon = CoreSyncIcon . LOADING ; // Sync icon.
101101 canScheduleExactAlarms = true ;
102102 scheduleExactWarningHidden = false ;
103103
@@ -174,7 +174,7 @@ export default class AddonCalendarEventPage implements OnInit, OnDestroy {
174174 * Check if the app can schedule exact alarms.
175175 */
176176 protected async checkExactAlarms ( ) : Promise < void > {
177- this . scheduleExactWarningHidden = ! ! ( await CoreConfig . get ( CoreConstants . DONT_SHOW_EXACT_ALARMS_WARNING , 0 ) ) ;
177+ this . scheduleExactWarningHidden = ! ! ( await CoreConfig . get ( CoreConfigSettingKey . DONT_SHOW_EXACT_ALARMS_WARNING , 0 ) ) ;
178178 this . canScheduleExactAlarms = await CoreLocalNotifications . canScheduleExactAlarms ( ) ;
179179 }
180180
@@ -192,7 +192,7 @@ export default class AddonCalendarEventPage implements OnInit, OnDestroy {
192192 return ;
193193 }
194194
195- this . syncIcon = CoreConstants . ICON_LOADING ;
195+ this . syncIcon = CoreSyncIcon . LOADING ;
196196
197197 await this . initializeSwipeManager ( ) ;
198198 await this . fetchEvent ( ) ;
@@ -317,7 +317,7 @@ export default class AddonCalendarEventPage implements OnInit, OnDestroy {
317317 }
318318
319319 this . eventLoaded = true ;
320- this . syncIcon = CoreConstants . ICON_SYNC ;
320+ this . syncIcon = CoreSyncIcon . SYNC ;
321321 }
322322
323323 /**
@@ -466,7 +466,7 @@ export default class AddonCalendarEventPage implements OnInit, OnDestroy {
466466 * @returns Promise resolved when done.
467467 */
468468 async refreshEvent ( sync = false , showErrors = false ) : Promise < void > {
469- this . syncIcon = CoreConstants . ICON_LOADING ;
469+ this . syncIcon = CoreSyncIcon . LOADING ;
470470
471471 const promises : Promise < void > [ ] = [ ] ;
472472
@@ -664,7 +664,7 @@ export default class AddonCalendarEventPage implements OnInit, OnDestroy {
664664 * Hide alarm warning.
665665 */
666666 hideAlarmWarning ( ) : void {
667- CoreConfig . set ( CoreConstants . DONT_SHOW_EXACT_ALARMS_WARNING , 1 ) ;
667+ CoreConfig . set ( CoreConfigSettingKey . DONT_SHOW_EXACT_ALARMS_WARNING , 1 ) ;
668668 this . scheduleExactWarningHidden = true ;
669669 }
670670
0 commit comments