|
@@ -69,11 +69,17 @@ export default function CheckAccess(props: { record: any, count: number }) {
|
|
|
if (global.indexPageRefresh) {
|
|
if (global.indexPageRefresh) {
|
|
|
global.indexPageRefresh()
|
|
global.indexPageRefresh()
|
|
|
}
|
|
}
|
|
|
|
|
+ if (global.refreshStreaks){
|
|
|
|
|
+ global.refreshStreaks()
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
if (sleep_expire && new Date().getTime() > sleep_expire && obj.current_record.status == 'WAIT_FOR_START') {
|
|
if (sleep_expire && new Date().getTime() > sleep_expire && obj.current_record.status == 'WAIT_FOR_START') {
|
|
|
if (global.indexPageRefresh) {
|
|
if (global.indexPageRefresh) {
|
|
|
global.indexPageRefresh()
|
|
global.indexPageRefresh()
|
|
|
}
|
|
}
|
|
|
|
|
+ if (global.refreshStreaks){
|
|
|
|
|
+ global.refreshStreaks()
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
@@ -203,6 +209,7 @@ export default function CheckAccess(props: { record: any, count: number }) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ setKeepContent(false)
|
|
|
setShowFastAlert(true)
|
|
setShowFastAlert(true)
|
|
|
setAlertTitle(t('feature.check_access.stay_qualified.title'))
|
|
setAlertTitle(t('feature.check_access.stay_qualified.title'))
|
|
|
setAlertContent(t('feature.check_access.stay_qualified.desc', { fast_streak_day: streak_fast_current, sleep_streak_day: streak_sleep_current }))
|
|
setAlertContent(t('feature.check_access.stay_qualified.desc', { fast_streak_day: streak_fast_current, sleep_streak_day: streak_sleep_current }))
|