incyclist-services 1.7.117 → 1.7.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/activities/base/repo/db.js +1 -1
- package/lib/cjs/activities/page/service.js +3 -1
- package/lib/cjs/activities/ride/service.js +1 -2
- package/lib/esm/activities/base/repo/db.js +1 -1
- package/lib/esm/activities/page/service.js +3 -1
- package/lib/esm/activities/ride/service.js +1 -2
- package/lib/types/activities/page/service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -223,7 +223,7 @@ let ActivitiesRepository = (() => {
|
|
|
223
223
|
return info;
|
|
224
224
|
}
|
|
225
225
|
search(criteria) {
|
|
226
|
-
let result = this.activities
|
|
226
|
+
let result = this.activities;
|
|
227
227
|
result = this.checkIdFilter(result, criteria);
|
|
228
228
|
result = this.checkHashFilter(result, criteria);
|
|
229
229
|
result = this.checkStartPosFilter(result, criteria);
|
|
@@ -198,7 +198,9 @@ let ActivitiesPageService = (() => {
|
|
|
198
198
|
updatePageDisplay() {
|
|
199
199
|
this.getPageObserver()?.emit('page-update');
|
|
200
200
|
}
|
|
201
|
-
onStateUpdate() {
|
|
201
|
+
onStateUpdate(state) {
|
|
202
|
+
if (state)
|
|
203
|
+
this.listState = state;
|
|
202
204
|
this.updatePageDisplay();
|
|
203
205
|
}
|
|
204
206
|
startEventListener() {
|
|
@@ -534,8 +534,7 @@ let ActivityRideService = (() => {
|
|
|
534
534
|
if (this.state === 'idle' || !this.observer)
|
|
535
535
|
return;
|
|
536
536
|
if (this.state !== 'completed') {
|
|
537
|
-
this.stop();
|
|
538
|
-
await new Promise(done => { this.observer.on('completed', done); });
|
|
537
|
+
await this.stop();
|
|
539
538
|
}
|
|
540
539
|
this.getRepo().delete(this.activity.id);
|
|
541
540
|
this.state = 'idle';
|
|
@@ -220,7 +220,7 @@ let ActivitiesRepository = (() => {
|
|
|
220
220
|
return info;
|
|
221
221
|
}
|
|
222
222
|
search(criteria) {
|
|
223
|
-
let result = this.activities
|
|
223
|
+
let result = this.activities;
|
|
224
224
|
result = this.checkIdFilter(result, criteria);
|
|
225
225
|
result = this.checkHashFilter(result, criteria);
|
|
226
226
|
result = this.checkStartPosFilter(result, criteria);
|
|
@@ -195,7 +195,9 @@ let ActivitiesPageService = (() => {
|
|
|
195
195
|
updatePageDisplay() {
|
|
196
196
|
this.getPageObserver()?.emit('page-update');
|
|
197
197
|
}
|
|
198
|
-
onStateUpdate() {
|
|
198
|
+
onStateUpdate(state) {
|
|
199
|
+
if (state)
|
|
200
|
+
this.listState = state;
|
|
199
201
|
this.updatePageDisplay();
|
|
200
202
|
}
|
|
201
203
|
startEventListener() {
|
|
@@ -528,8 +528,7 @@ let ActivityRideService = (() => {
|
|
|
528
528
|
if (this.state === 'idle' || !this.observer)
|
|
529
529
|
return;
|
|
530
530
|
if (this.state !== 'completed') {
|
|
531
|
-
this.stop();
|
|
532
|
-
await new Promise(done => { this.observer.on('completed', done); });
|
|
531
|
+
await this.stop();
|
|
533
532
|
}
|
|
534
533
|
this.getRepo().delete(this.activity.id);
|
|
535
534
|
this.state = 'idle';
|
|
@@ -21,7 +21,7 @@ export declare class ActivitiesPageService extends IncyclistPageService implemen
|
|
|
21
21
|
onClearWorkoutSelection(): void;
|
|
22
22
|
onDeleteActivity(id: string): Promise<boolean>;
|
|
23
23
|
protected updatePageDisplay(): void;
|
|
24
|
-
protected onStateUpdate(): void;
|
|
24
|
+
protected onStateUpdate(state?: ActivityListDisplayProperties): void;
|
|
25
25
|
protected startEventListener(): void;
|
|
26
26
|
protected stopEventListener(final?: boolean): void;
|
|
27
27
|
getActivityList(): import("../list").ActivityListService;
|